flag468x90.zipHi all
While trying out the new v12 GSAP with a small 468x90 banner I noticed the background image shifts a few pixels, like a quick snapping movement once it starts to loop via a label in the timelinelite.
Why is this happening?
The bg image is img_fundo_mc.
Thanks for your help.
The code:
import com.greensock.*;
import com.greensock.easing.*;
var tl:TimelineLite = new TimelineLite({onComplete:loopBackground});
tl.append( TweenLite.from(img_flag_mc, .5, {x:"-=100", ease:Power4.easeOut}) );
tl.append( TweenLite.from(img_cursos_mc, .5, {y:"-=100", ease:Power4.easeOut}) );
tl.append( TweenLite.from(img_saber_mc, .5, {alpha:0, ease:Power4.easeOut}) );
tl.append( TweenLite.from(img_fundo_mc, 1, {alpha:0, ease:Power4.easeOut}) );
tl.insert( TweenLite.to(img_fundo_mc, 2, {x:-13, y:-16, scaleX:0.75, scaleY:0.75, rotation:-10, ease:Power3.easeInOut}), "loop");
tl.append( TweenLite.to(img_fundo_mc, 2, {x:-69, y:-168, scaleX:0.90, scaleY:0.90, rotation:10, ease:Power3.easeInOut}) );
tl.append( TweenLite.to(img_fundo_mc, 2, {x:0, y:0, scaleX:1.0, scaleY:1.0, rotation:0, ease:Power3.easeInOut}) );
function loopBackground():void {
tl.play("loop")
}