Jump to content
Search Community

Problem with a mastertimeline and nested timelines placed in fnctions.

ijwebbdesign test
Moderator Tag

Go to solution Solved by jamiejefferson,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

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:

 

master.add(logo())

.add(logo2())

.add(logo3());

 

Only the logo-function is executed.

 

If I write:

 

master.add(logo)

.add(logo2)

.add(logo3);

 

All the functions are executed at the same time.

 

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

 

Can someone please help me?

 

Best regards

Ingemar 

Sweden

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

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