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 =newTimelineLite();
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!
.kill() is not working
in GSAP
Posted
I have this tween that repeats infinitely:
but I want to stop this animation after a certain point. I have a TimelineLite() which calls a function after the last animation:
Then I have that function that's being called onComplete:
Not sure if I'm missing something or what. Advance thanks for whoever is going to help!