Jump to content


retrieving greensock timelines

Recommended Posts



I am creating a pause/play button as part of a suite of debugging tools.

I want this to be versatile so that it works across any greensock animation.

What i need to do is retrieve the greensock timeline, (without relying on going in to each aniamtion and finding what the timeline variable has been named) so that when i click on my pause button, it will grab all greensock timelines and pause them.


I can see that the timeline returns: s {vars: Object, _totalDuration: 5, _duration: 5, _delay: 0, _timeScale: 1…}_

But can't see how to access this and pause it, 


could anyone help?


thank you, J.


Link to comment
Share on other sites

i have spent all day on this looking into what gets logged in the console.

This worked in about two minutes, and made life a lot lot simpler.


thanks very much :)



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