Jump to content
Search Community

delay and rotationX

Luigi Vercotti test
Moderator Tag

Recommended Posts

Hello

 

Why can I make it work?

TweenLite.to(zlate_z, 3, {x:-185.7, y:0, rotationX:100, rotationZ:50, ease:Bounce.easeOut});
TweenLite.to(zlate_z, 1, {rotationX:0, rotationZ:0, delay:2, overwrite:false});

 

First line is working but not the second one.

 

Second Q:

Can I set the start and end like in Tween?

 

Thanks ;-)

Link to comment
Share on other sites

Why can I make it work?

TweenLite.to(zlate_z, 3, {x:-185.7, y:0, rotationX:100, rotationZ:50, ease:Bounce.easeOut});
TweenLite.to(zlate_z, 1, {rotationX:0, rotationZ:0, delay:2, overwrite:false});

First line is working but not the second one.

 

You have overlapping tweens. Your first one lasts 3 seconds, but your second one only has a delay of 2, so there's 1 second where they overlap and you have BOTH tweens trying to control the same properties (rotationX and rotationZ). They're fighting with each other. So set your delay to 3 or more on the second one.

 

Can I set the start and end like in Tween?

 

That's what TweenMax.fromTo() is for. There is no fromTo() in TweenLite though. http://www.TweenMax.com

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