Jump to content


repeating nested timelines.

Moderator Tag

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

I searched the forums and could not find a specific answer to this. I have a main timeline and nested timelines. I want to repeat the main timeline 3 times. Whenever I pass in the repeat parameters into the main timeline the whole thing breaks var mainTimeline = new TimelineMax(repeat:2, repeatDelay:20);


I am about to put everything into one timeline due to time constraints but wondering if anyone has a solve for this? Thanks!



Link to comment
Share on other sites

Hi cwiens@shutterfly.com  :)


I'm not sure if you have a typo in your question or that's the actual code you're using, but thought I'd look at the obvious first:

//you have
var mainTimeline = new TimelineMax(repeat:2, repeatDelay:20);
// but it should be
var mainTimeline = new TimelineMax({repeat:2, repeatDelay:20});

Other than that, I'd have to see a CodePen to be of any help.


Happy tweening.


  • Like 2
Link to comment
Share on other sites

OMGOSH. thanks. I have been off for a couple weeks and I guess I stopped looking at details, lol. THANKS!

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