2.6.10
https://codesandbox.io/s/vue-template-lcrsy
Click "Move" button.
Both two lists move with animation.
Only second list which is applied duration with css has animation.
duration only exists in transition. Since transition-group has 3 types of animations, we could have something like:
Number: Applies the same duration to _enter_, _leave_ and _move_
<transition-group :duration="500">...</transition-group>
Object: Explicit for every type of animation but requires the three of them
<transition-group :duration="{ enter: 500, leave: 800, move: 300 }">...</transition-group>
@posva I tried to resolve this: https://github.com/vuejs/vue/pull/10627
Please merge if it looks good.
Most helpful comment
durationonly exists intransition. Sincetransition-grouphas 3 types of animations, we could have something like:Number: Applies the same duration to _enter_, _leave_ and _move_
Object: Explicit for every type of animation but requires the three of them