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

Feature request: disable prop to disable animation at some point #9

Open
AlexandreBonaventure opened this issue Feb 2, 2018 · 3 comments

Comments

@AlexandreBonaventure
Copy link

AlexandreBonaventure commented Feb 2, 2018

Hi, would be great to have more control on animations...

Or, one option could be add a preset animation instant to disable animation ...

@posva
Copy link
Owner

posva commented Feb 2, 2018

do you mean like a pause and resume method or an actual prop to make the values simply go through?
If it's the second, what is the use case?

@AlexandreBonaventure
Copy link
Author

Yeah, sorry I was looking at your code for making a PR, but let me explain you a little bit more.
I would need the second, my use-case is using vue-motion to power some transitions for a carousel (and other ui elements).
For the carousel, I need to reset (in a instant fashion) the tweened value at some point to handle looping for instance.

@posva
Copy link
Owner

posva commented Feb 2, 2018

mmh, I think the PR should be feasible by using a disable or instant prop that is checked in the animate call and returns prematurely plus setting the actual value

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