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

v-enter class is removed immediately when using animation transition #8976

Open
teh-obeng opened this issue Oct 22, 2018 · 4 comments
Open

Comments

@teh-obeng
Copy link

Version

2.5.17

Reproduction link

https://jsfiddle.net/u9wryh32/2/embedded/result/#Result

Steps to reproduce

  1. Click 'toggle' button
  2. When the text component is still animating, inspect its class
  3. Got bounce-enter-active instead of bounce-enter bounce-enter-active

What is expected?

It will have bounce-enter bounce-enter-active class

What is actually happening?

It only has bounce-enter-active class


The docs stated

CSS animations are applied in the same way as CSS transitions, the difference being that v-enter is not removed immediately after the element is inserted, but on an animationend event.

https://vuejs.org/v2/guide/transitions.html#CSS-Animations

@posva
Copy link
Member

posva commented Oct 22, 2018

@chrisvfritz @yyx990803 aren't the docs inaccurate here? To me it would make sense the v-enter class to also be removed on animations (or even to not get applied at all)

@chrisvfritz
Copy link
Contributor

@sdras What are your thoughts on this (having probably built more animations than the rest of us combined)? 😄 What behavior would you expect?

@yuzhihang
Copy link

yuzhihang commented Dec 16, 2019

got the same problem, is there any one explain it?
see also
https://forum.vuejs.org/t/v-enter-class-is-removed-immediately-when-using-animation-transition/46368

@bangbangde
Copy link

我也遇到了这个问题,很疑惑为什么这个问题到现在还没有被处理

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

5 participants