Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Problem with a mastertimeline and nested timelines placed in fnctions.

Recommended Posts

Hi Greensock!


I  wan't to use a master timeline where I can put in nested timelines. The same way it works in "Greensock homepage Animation".


I have chosen TimelineMax for the mastertimeline (called "master") and Timelinelite for the nested timelines. The nested timelines have I placed in functions. So it will be easier to adjust things when complexity of the animation increase.


The problem is that the chaining doesn't work in the mastertimeline. All the functions starts at the same time, or doesn't start at all. 


There also seams to be some problem how to add the functions to the mastertimeline called "master".


If I write:






Only the logo-function is executed.


If I write:






All the functions are executed at the same time.


*I use jQuery $(document).ready(function(){});


Can someone please help me?


Best regards



See the Pen PwGdZP by anon (@anon) on CodePen

Link to comment
Share on other sites

If you add the line

return tl;

at the end of each logo function, then


will work as I believe you are intending.

  • Like 2
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.