Jump to content
Search Community

How to 'reset' and 'reapply' timeline (click based)?

NubieHere test
Moderator Tag

Recommended Posts

I need to somehow reset a timeline and reapply it in a safe and robust way. As you can see in the codepen the close button (the black circle with a white cross in the upper right corner when clicking one of the colored boxes) the cross rotates just fine the first time, and then – depending on when you click to close it – it starts to get weird. Next time you click a colored box, the cross start off from the same position when you clicked to close it. Somehow makes sense I guess as the rotation is somehow at that point in time. But it also doesn't fire at all at random ... so, how can I make SURE that the NEXT time I apply a timeline to ANYTHING, ALL PREVIOUS 'stuff' is eliminated COMPLETELY, so that I can reassign stuff without getting kicked in the nuts?

See the Pen PowXZrB by blaasvaer (@blaasvaer) 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.
×
×
  • Create New...