I want to add a timeline inside another, then I want to .play the first animation an when it finish makes the other .resume because its nested inside
I paused the anim1 and anim 2 because i dont want them to play separatly in the moment I start the web page, i just want to make the animation 2 runs when i call to play the animation1 as a sequence but i dont know how to take out the pause with out making the TimelineMax auto play at the start.
------------------------------------------------------------------------------------------
//here the animations are paused:
var anim1= new TimelineMax({paused:true});
var anim2= new TimelineMax({paused:true});
anim2.from(element1, 1, {top:-200});
// nested animation:
anim1
.from(element2, 1.2, {top:-1500})
.add(anim2)
.anim2.resime(); /////////////////////////////////// I WANT TO RESUME THIS ANIMATION2 IN THIS POINT AFTER ANIMATION 1 FINISH.
anim1.play()
--------------------------------------------------------------------------