Jump to content
Search Community

TransformMatrix and appendMultiple

JE.T test
Moderator Tag

Recommended Posts

HI guys,

 

wonder if anyone ever came accross this : TransformMatrix on and Mc cant be applied to it twice in the same appendMultiple.

 

Maybe im using it the wrong way,

 

any idea Why this works :

 

tl.appendMultiple([TweenLite.to(mc[c],2,rotation:0, ease:Elastic.easeOut,delay:0.5}),TweenMax.fromTo(mc[c],1,{autoAlpha:0, transformMatrix:{scaleX:3, scaleY:3},blurFilter:{blurX:10, blurY:10}},{blurFilter:{blurX:0, blurY:0},autoAlpha:1,transformMatrix:{scaleX:0.4, scaleY:0.4 ,x :150, y:200}, ease:Circ.easeIn})]);

 

And that doesn't

 

tl.appendMultiple([TweenLite.to(mc[c],2,{transformMatrix:{rotation:0}, ease:Elastic.easeOut,delay:0.5}),TweenMax.fromTo(mc[c],1,{autoAlpha:0, transformMatrix:{scaleX:3, scaleY:3},blurFilter:{blurX:10, blurY:10}},{blurFilter:{blurX:0, blurY:0},autoAlpha:1,transformMatrix:{scaleX:0.4, scaleY:0.4 ,x :150, y:200}, ease:Circ.easeIn})]);

 

{ the second tween with Scaling does not work }

 

Thanks for explanations

Link to comment
Share on other sites

You're doing two transformMatrix tweens on the same object at the same time - that can't work. See what I mean?

 

Also, as indicated on the tips & tricks page (http://www.greensock.com/tweening-tips/), keep in mind that transformMatrix affects ALL of the transform properties (scaleX, scaleY, rotation, width, height, x, y) so if you need to have multiple concurrent tweens running that are affecting those properties of the same object, don't use transformMatrix.

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...