Jump to content
Search Community

Bouncing with tweenLite?

steelbydesign test
Moderator Tag

Recommended Posts

I'm using tween lite for the first time on a project and I've gotten the hang of using it for transitions. I use the "Elastic" tween a lot for transitions in the project... I'd like to make a mouse over event, so that when the user mouses over, a particular movie clip with give a little bounce (similar to the elastic bounce if possible)...

 

So I'd like the X and Y to stay the same but the object can stretch a little bit. Any tips?

Link to comment
Share on other sites

On mouse over you can tween the scaleX and Y of the target movie clip, then on mouse out you can set them back to 1.

 

TweenLite.to(ball, 0.5, {scaleX:2, scaleY:2, ease:Elastic.easeInOut});

 

TweenLite.to(ball, 0.5, {scaleX:1, scaleY:1, ease:Elastic.easeInOut});

 

I don't have access to Flash currently (formatting, long long story) so I can't test it, but that should get you started.

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