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

Animation on List isn't smooth #6

Open
gijo-varghese opened this issue Mar 6, 2018 · 1 comment
Open

Animation on List isn't smooth #6

gijo-varghese opened this issue Mar 6, 2018 · 1 comment

Comments

@gijo-varghese
Copy link

First of all thanks for the amazing library. I'm really loving it.

I have a list that is created using v-for. And I want to animate new elements added to the bottom of the list. When a new element is added the previous one doesn't go up smoothly. I think it because when a new element is added it creates the div with X height. Instead of that, I think the newly inserted element's height should start from 0 to X.

And in most of the cases, the newly inserted element's height may not be fixed. We may need to set max-height
see: https://stackoverflow.com/questions/48013822/how-can-i-use-vue-js-transitions-without-hard-coding-height

@cristijora
Copy link
Collaborator

Hi @gijo-varghese
Could you please create a small example based on this snippet?
https://codesandbox.io/s/13wr0vojn3

There are some gotchas for group transitions
https://github.com/cristijora/vue2-transitions#group-transitions
which are mainly limitations provided in the Vue documentation.

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

No branches or pull requests

2 participants