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

unexpected behaviour when using <transition> appear & mode attrib #4985

Closed
newbie78 opened this issue Feb 21, 2017 · 2 comments
Closed

unexpected behaviour when using <transition> appear & mode attrib #4985

newbie78 opened this issue Feb 21, 2017 · 2 comments
Labels

Comments

@newbie78
Copy link

newbie78 commented Feb 21, 2017

Vue.js version

2.1.10

Reproduction Link

https://jsfiddle.net/pctmfmhe/1/ - a variant with css transition
https://jsfiddle.net/jz5rrgdk/ - a variant with js transition

Steps to reproduce

css: click run on jsfiddle
js: click any button in result pane

What is Expected?

css: not working appear attribute - does not work initial animation
js: not working mode="out-in" attr - after click the button disappears block in <transition> comp. if you remove this attribute then the block does not disappear but the animation (leave & enter) is triggered simultaneously.

What is actually happening?

this is my first app on vue. I don't know =)
I want to know is the problem in my code or is it a bug?
tnx

@posva
Copy link
Member

posva commented Feb 21, 2017

For the CSS one, you need to apply an appear class too since you're using custom classes (https://jsfiddle.net/posva/unup1r7h/) or manually apply the fadeIn class (https://jsfiddle.net/posva/euLu9yze/). We should at least point it out in the docs. Thanks for raising the issue!

About the JS one, you're not calling the done callbacks Velocity(el, 'fadeIn', { duration: 800, complete: done })

@newbie78
Copy link
Author

newbie78 commented Feb 21, 2017

many thanx posva!

css case it all became clear. but i think it is logical that when you specify the attribute 'apper', class of 'enter-active-class' automatically substitutes the <div>. why not?

about done(), callback I missed when reading the manual )
maybe you should add this in the api description?

tnx

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

No branches or pull requests

3 participants