Jump to content
Search Community

Nested timelines - keeping in sync when a child timeline progress is changed

iongion test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I am trying to find a way to keep timelines in sync, even when child timelines are modified.

 

Now, when one drags the slider of the root timeline, all the children respect it.

As soon as a child timeline is manipulated, they all go out of sync.

 

Is there a simple way to keep them in sync without recomputing manually the positions ?

See the Pen RwJOyKb by iongion (@iongion) on CodePen

Link to comment
Share on other sites

I saw several problems: 

  1. You set smoothChildTiming: true on the timeline which does exactly the opposite of what you're asking for here. It allows the placement of children to shift around on their parent timeline. It sounds like you want that to be false, not true.
  2. You set autoplay, loop, immediateRender and easing on the timeline configuration object but there are no such properties. Those will all be completely ignored. 

I suspect you may be misunderstanding how timelines and tweens work. You might want to review this: https://greensock.com/docs/v3/GSAP

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...