Jump to content
Search Community

Wierd tweenlite pixel snapping - help!

palofigueiredo test
Moderator Tag

Recommended Posts

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")

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...