Search the Community
Showing results for tags 'control timeline'.
Hello ! Got inspired by the last clean code video about dividing the animations into separate functions and controlling them via a master timeline - usually, I always created a new Tl01 02 03 04 etc then merged them into one master. To stop the timeline in the middle of master timelines I had to use tl02.pause() and it worked like a charm Now as seen in codepen the same thing does not work for the function-based master timeline - I feel like I'm missing something there. If you guys could tell me more about controlling multiple nested timelines - or point me in the right direction it would be fantastic! ========================================================== What I'm trying to achieve - right now I have animation with similar structure as in codepen - masterFunctions tl Few of my timelines are out of the global one (I want them to be in global timeline just can't get them play in the right moment if they are there) I'm trying to put all small timelines into a global one, have control when to play pause each of them and finally, on click reset EVERYTHING to initial positions and play again smoothly - right now I'm using masterFunctions.seek().play(0); for the reset, but I'm not sure that's the best option(?) Any help will be much appreciated !