Jump to content
Search Community

How to get the list of DOM objects from a timeline?

sneaky test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

When I create a timeline like this

            var tl = new TimelineMax({
                repeat : 5
            }).to(arm, duration, {
                scaleX : 1.05,
                scaleY : 0.95,
                transformOrigin : to
            }).to(leg, duration, {
                scaleX : 1,
                scaleY : 1,
                transformOrigin:to
            });

how can I get the objects from tl, that I passed to it when making it. Basically I am looking for something like:

tl.getElements();

which gives me

[arm, leg]

Does anyone know how to do this?

 

Thanks

 

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...