NubieHere Posted January 23, 2020 Share Posted January 23, 2020 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 More sharing options...
NubieHere Posted January 23, 2020 Author Share Posted January 23, 2020 OK, the problem seemed to be that I didn't know you could pass in a jQuery object as the target ... fixed the issue. 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