Jump to content
Search Community

Saggit

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Saggit

  1. 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.

    See the Pen bGVQLxZ by mozmar (@mozmar) on CodePen

×
×
  • Create New...