Jump to content
Search Community

Timing issue when animating a circle

JPM test
Moderator Tag

Go to solution Solved by JPM,

Recommended Posts

That probably has to do with that the calculations are not 100% accurate and I have the feeling that DrawSVG solves a lot of those bugs, so that you don't have to worry about it. 

 

I've forked your pen and add the DrawSVG plugin then with a simple .to() tween, everything works as expected. I've also given your tween a name and called .restart() on it on mouse click, instead of creating a new tween each time. I'll mark the topic, maybe another SVG guru has some notes on it.

 

Hope it helps and happy tweening! 

 

Note that the codepen preview has something weird going on, better view it on the codepen site it self.

 

See the Pen JjegLze?editors=0011 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...