Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transition-group with duration property doesn't work #10626

Open
yukukotani opened this issue Oct 13, 2019 · 2 comments
Open

transition-group with duration property doesn't work #10626

yukukotani opened this issue Oct 13, 2019 · 2 comments

Comments

@yukukotani
Copy link

Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-template-lcrsy

Steps to reproduce

Click "Move" button.

What is expected?

Both two lists move with animation.

What is actually happening?

Only second list which is applied duration with css has animation.

@posva
Copy link
Member

posva commented Oct 13, 2019

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>

@yukukotani
Copy link
Author

@posva I tried to resolve this: #10627
Please merge if it looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants