Jump to content
Search Community

RichC

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by RichC

  1. I have this tween that repeats infinitely:

     

    var sparkleblink = TweenMax.staggerTo(".confetti", .5, {ease:Linear.easeNone, opacity:.2, repeat:-1}, .01);

     

    but I want to stop this animation after a certain point. I have a TimelineLite() which calls a function after the last animation:

     

    var tothebox = new TimelineLite();
    	tothebox.to(".scrollnotif", .1, {opacity:0})
    
    		// ** other animations here** //
              
    		.to(".scrollnotif", .1, {opacity:1, onComplete:killthis});

     

    Then I have that function that's being called onComplete: 

     

    function killthis(){
    	sparkleblink.kill();
    }

     

    Not sure if I'm missing something or what. Advance thanks for whoever is going to help! 

×
×
  • Create New...