friendlygiraffe

replay child timeline

Recommended Posts

Hi, is it possible to replay a child timeline. See the Codepen URL for what I mean. It resets it, but doesn't play.

Thanks

Share this post


Link to post
Share on other sites

Hi @friendlygiraffe,

 

I´m not sure: The reason could be "An instance cannot exist in multiple timelines at once."

 

An alternative could look like this:

 

 

Kind regards

Mikel

 

 

  • Like 2

Share this post


Link to post
Share on other sites

Child animations are rendered based on the position of the parent timeline's playhead. 

Even though you are restarting the child timeline (blue) the parent's playhead isn't moving... its still at the end of the timeline. 

 

However, if you set smoothChildSmoothing to true then you can get the behavior you want

 

smoothChildTiming docs: https://greensock.com/docs/TimelineMax/smoothChildTiming

 

 

 

  • Like 2

Share this post


Link to post
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.