/ Published in: JavaScript
Paste this code in Edge's creationComplete function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
yepnope({nope:["http://cdnjs.cloudflare.com/ajax/libs/gsap/1.11.0/TweenMax.min.js"], complete:init}); var red = sym.$("red"); //var text1 = sym.getComposition().getStage().getSymbol('txt1Box').element; function init() { tl = new TimelineMax(); animate(); } function animate() { //tl.to(red, 1, {onStart:resetSigns, alpha:0, onComplete:animateSigns}); tl.to(red, 2, {alpha:0}, "-=1"); } function animateSigns(){ spriteContainer.play(); } function resetSigns(){ spriteContainer.stop(0); } function resetAndReplay(){ tl.restart(); }