Hello,
I have a client who would like to add looping functionality to an existing banner ad which was developed with Greensock TweenNano. I normally work in a timeline view, so I'm not quite sure how to make this work. I have searched Google and found a few answers but nothing that has worked on my particular file. The actions are written out as steps like so:
function init() {
step1();
}
function step1(){
TweenNano.to(text3, frameTime, {delay:frameTime, x:52, onComplete:step2});
}
function step2(){
TweenNano.to(text3, 0.5, {delay:frameDelay, alpha:0});
TweenNano.to(text4, frameTime, {delay:frameDelay, x:39});
TweenNano.to(text4Arrow, 1.5, {delay:frameDelay, x:21, ease:Bounce.easeOut});
}
init();
Can anyone point me in the right direction as to how I can make this animation loop X number of times?
Thanks!