Jump to content


check if ANY timeline is being played

Recommended Posts



I wonder if i can check for any currently active timelines. Here is why:


I have many timelines, with many calls to different functions and all they refer to different DOM objects. Now i want to prevent playing new animations (or queue it) if any other animation is currently being played. Since i havent found anything useful in documentation (except exportRoot but that doesnt suits my need) i want to know if i can check if any timeline of any DOM is currently being played.  

I think about something like this:

if ( TweenMax.isActive() ) { 
 // add new animation to queue
} else {
 // call new animation

Is that somehow possible?


Link to comment
Share on other sites

Actually after more research

mainTimeline = exportRoot({ onComplete: callback })

 works quite fine for my needs as well as queue engine and event listener (end on main timeline). It needs some modifications but it is a good start. Hope that helps anybody.

  • Like 1
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.