-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Question: Setting "duration: 0" doesn't work as expected #55
Comments
Thanks, @nltesown :) Supporting a true However, I can make |
Hi Julian, |
Have you thought about using forcefeeding to achieve the same jumping effect? If you forcefeed a start value, Velocity will immediately start at that point. No flickering. http://velocityjs.org/#forcefeeding If that doesn't solve your issue, I'll look further into implementing a feature like you're describing. |
Thanks, I had not noticed this advanced setting, I'll have a look. |
Actually, my first move was exactly the same (setting duration: 0). Maybe it would be more intuitive? |
K. I'm going to change 0 to default to 1 instead of 400. This change will be pushed tonight. Thanks, guys. |
Thanks a lot Julian! |
It is often useful to jump directly to the final state of an animation and jQuery.animate does just that when you set duration to 0. With velocity,
duration: 0
apparently causes the animation to run in the default 400ms duration. A 1ms duration behaves as expected but is not a satisfactory solution when you need an immediate jump to the final state. Thanks!(PS: your plugin is amazing!)
The text was updated successfully, but these errors were encountered: