Share Posted December 4, 2016 Hello,I'm trying to use the method seek() to jump to a label in a nested timeline. The real example is a bit complex to reproduce in a codepen so I constructed a useless one just to show the issue. Baically I have a series of small animation contained in a another animation. This animation (the external one) has a duration equal to all the small animations inside. I would like to be able to jump to each of these animations, but apparently I can't. I'm sure there's a good reason for this, but is there any way to achieve what I'm trying to do? See the Pen RoQEqY by qarlo (@qarlo) on CodePen Link to comment Share on other sites More sharing options...
Share Posted December 4, 2016 Hi qarlo pls try these methods : See the Pen vydbbB by MAW (@MAW) on CodePen masterTl.seek( childTl.getLabelTime('labe') ); // if childTl added and start from time '0' in master timeline masterTl.seek( childTl.startTime()+childTl.getLabelTime('labe') ); // if childTl position in another time in master Tl 5 Link to comment Share on other sites More sharing options...
Author Share Posted December 6, 2016 Thanks, this works perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now