Antdev Posted April 21, 2022 Share Posted April 21, 2022 Hello I want to display 10 elements that are constantly rotating but I would like to start them each of a different rotation. My tests so far are resulting in the rotation resetting when it gets to the end of one spin. See What am I doing wrong? Thanks Anthony See the Pen ZEvLNaa by antdev (@antdev) on CodePen Link to comment Share on other sites More sharing options...
Solution OSUblake Posted April 21, 2022 Solution Share Posted April 21, 2022 You need to use a relative value to add 360 degrees to the current rotation. They way you currently have it, it will only rotate to 360 degrees and then restart. gsap.to(".square", { rotation:"+=360" }); 1 1 Link to comment Share on other sites More sharing options...
Antdev Posted April 21, 2022 Author Share Posted April 21, 2022 Oh my you guys really do rock! That is an amazing response rate!! Thank you, that works a treat! Ant See the Pen qBpvXaX?editors=1010 by antdev (@antdev) on CodePen 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now