Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
elegantseagulls

Restarting timeline for different elements

Recommended Posts

Hi All, 

 

I'm working on a custom radio checkbox using drawSVG and am having a bit of trouble getting my animation to play more than once. I'm thinking that resetting the timeline once the animation is completed is how it should be done, but I'm not able to quite figure that out. 

 

Please see the Codepen ( details. 

 

Thanks!

Ryan

 

See the Pen vNozXO by ryan_labar (@ryan_labar) on CodePen

Link to comment
Share on other sites

Well I figured it out. Sorta. It was breaking due to the .from() I was using with DrawSVG. I needed to set the length to 0 and use to(). 

 

Solution is here: 

See the Pen vNozXO by ryan_labar (@ryan_labar) on CodePen

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.
×