Jump to content
Search Community

Alatr

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Alatr

  1. 1 hour ago, ZachSaucier said:

    Thanks, I understand now. Thanks for a clear demo!

     

    Let me explain what is going on:

    1. You create a timeline a1 that is paused and the playhead is at time 0.
    2. You add that timeline to a master timeline.
    3. You then attempt to add the same timeline a second time to the master timeline but this time in the reverse direction.

    All of the above happens when the master timeline is initialized.

     

    Since both times you are referring to the same timeline object, the timeline's (a1's) playhead is changed to be at the end and going in the reverse direction when the master timeline's gets to where it should play a1 the first time. Thus there's nothing to play. So it moves on to the second (reversed) timeline and plays that.

     

    To do what you are wanting to do, you should create two timelines: One to animate it in, one to animate it out. I would probably use a .call() to make sure the timeline isn't affected until the correct time comes. 

     

     

     

    Please let me know if you have questions.

    thank you so much, you really helped, great explanation

×
×
  • Create New...