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

rotateZ and loop doesn't allow for 360deg rotations #270

Closed
rob-balfre opened this issue Aug 25, 2014 · 4 comments
Closed

rotateZ and loop doesn't allow for 360deg rotations #270

rob-balfre opened this issue Aug 25, 2014 · 4 comments

Comments

@rob-balfre
Copy link

I was trying to mirror something like this (http://jsfiddle.net/kFmY8/2/) with velocity and couldn't find a solution. As you can see here it just rewinds the rotation instead of looping... http://jsfiddle.net/knf9c8yp/

@julianshapiro
Copy link
Owner

See the FAQ here on GitHub.

@julianshapiro
Copy link
Owner

Support for this will be added in the upcoming version of Velocity. It will detect when you're animating a rotateX/Y/Z property to 360 with loop: true then continuously rotate seamlessly.

@julianshapiro
Copy link
Owner

Done. Please update to the latest version of Velocity and confirm that all works as expected.

@rob-balfre
Copy link
Author

http://jsfiddle.net/9pv5L4dv/ Looks good, thanks!

Rycochet pushed a commit that referenced this issue Aug 3, 2020
`begin`, `complete`, `progress`, and `promise` callbacks now return
arrays even when only a single element is being animated. (Iterate over
the returned variable with .forEeach or $.each()). Will break backwards
compatibility for those who weren’t already iterating.

Continuous 360deg rotation looping. Closes #270.
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