How to get the list of DOM objects from a timeline? in GSAP Posted July 4, 2015 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
How to get the list of DOM objects from a timeline?
in GSAP
Posted
When I create a timeline like this
how can I get the objects from tl, that I passed to it when making it. Basically I am looking for something like:
which gives me
Does anyone know how to do this?
Thanks