Hello there,
How do i check isActive() across ALL timelines so that i can prevent further animations running until all is NOT active.
I have forked pen "check isActive()" to help illustrate my case as seen below but do not know how to proceed.
I am:
- using an object organise my timelines.
- trying to prevent multiple animations occurring simultaneously from user input selection.
I have also looked at this gsap post which looks like the u
One approach is store a reference to the "currentAnimation". Whenever a button is pressed, reverse the currenAnimation and apply an onReverseComplete that will call a function that will then play the next animation. As Jack mentioned, it really stinks to be forced to wait for an AI to allow you to do something. It also stinks watching transitions that are too long. To alleviate that pain, I increase the timeScale of the currentAnimation that is being reversed:
See