I'm trying to implements a transition between two elements containing CSS animations simply by following the documentation's example.
My HTML contains : A button to change my state :
<button @click="toggled = !toggled">
Toggle class ({{ toggled }})
</button>
The transition with the two loader (a red and a black one) :
<transition name="fade" mode="out-in">
<div class="loader" v-if="toggled" key="toggled"></div>
<div class="loader red" v-else key="notToggled"></div>
</transition>
It appears that the VueJS's transition is waiting for the animation to finish before displaying the next. Am I doing something wrong ?
Reproduce the issue : https://jsfiddle.net/f2vozp35/2/