Jump to content
Search Community

Repeating timeline

b0b3k test
Moderator Tag

Go to solution Solved by Diaco,

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 dont think that I use today this forum ;) but.... how can I make this:

 

repeat a twice timelinelite but second repeat is only to specific moment? i was trying by adding window.repeat = 0; and onComplete increase it and check inside timeline but it dont use this ?

Link to comment
Share on other sites

yep , if you'r using TimelineMax , you can do like this :

var tl = new TimelineMax({ repeat:1 , repeatDelay:2 });

but if you'r using TimelineLite , try something like this :

var tl = new TimelineLite({onComplete:restart});

function restart(){  TweenLite.delayedCall(2,function(){tl.restart()})  };
Link to comment
Share on other sites

thanks :) i've made this by using:

 

 

        TweenLite.delayedCall(27, p);
        
        
        function p() {
            mainTL.pause();
            secondTL.pause();
        }

 

 

pausing second repeat at specified total time works perfect ;)

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