miry
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by miry
-
-
Hi,
I would like to create a timeline "A" from which I do some animation and then play another timeline "B" and potentially a timeline "C". I know I can do that by doing A.add(B.play) but as I understand it it merely means B is started at the point in A where I include it. I would like to ultimately be able to fire a callback once A, B and C are all finished without having to worry about whether B plus the elapsed time in A before is start B is longer than the total duration of A. Is there a nice way to create this structure and add a callback once all the timelines end?
Best regards,
Miry
Callback after all my timelines end
in GSAP
Posted
Hi Carl,
Thank you very much. That helped. My problem was that I has not paused animation B so it started as soon as I defined it and as such was not a child of A. That meant it continued playing after A had fired its onComplete.
There was a typo in the text you quoted. It was supposed to read:
without having to worry about whether B plus the elapsed time in A before I start B is longer than the total duration of A.
Best regards,
Miry