Saggit
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Saggit
-
-
@PointC, thanks for your reply. I should've provided the codepen from the start. It is now attached, please take a look. I need to catch the moment when the seek position moves to the left of the child timeline, and I don't see any simple way to do that.
-
I need to take action when current seek position moves out of a child timeline. When the seek position moves "to the right" of a child timeline, an `onComplete` event is fired for that child timeline, which is great. However, when the seek position moves "to the left", no event is fired, as far as I can tell. There is the `onReverseComplete` event declared, but it is not triggered in this case.
I've got a complex scene with child timelines and a slider that user can use to seek a position within the scene. The idea is that when the seek position moves out of a child timeline, the DOM elements used for that child timeline are removed from the DOM tree.
I can try to implement a mechanism that keeps track of which child timelines contain the current seek position, but maybe I'm missing something in GSAP that I can use. Any suggestions are welcome.
Taking action when seek position moves before the child timeline position
in GSAP
Posted
Just wow. @GreenSock, thank you so much! GSAP has the best support I've ever seen. Your solution absolutely helped.
Yes, please 🙂
Thanks again!