Jump to content
Search Community

Quick question about sequential tweening

MikeTheVike test
Moderator Tag

Recommended Posts

I'm new to using TweenLite, used Tweener in the past. I'm working on a banner ad and need to keep file size low. With Tweener I could put tweens sequentially and just set a delay. It would go through and activate the tweens when the delay number was hit. I'm trying something similar with TweenLite and it's not working, I think the second tween is canceling out the first one before it's delay time is met. How do I accomplish something like what I have in the code below? Thanks!

 

	TweenLite.to(mc_text_01, .5,  {scaleX: 1, scaleY: 1, alpha:1, ease:Back.easeOut, delay: .5 });
	TweenLite.to(mc_text_01, .5,  {scaleX: 0, scaleY: 0, alpha:0, ease:Back.easeIn, delay: 3 });

Link to comment
Share on other sites

Check out the FAQ #6:

http://www.greensock.com/tweenlite/ (scroll down)

 

If you can afford an extra 1k, I'd recommend just initializing OverwriteManager in AUTO mode like this:

OverwriteManager.init(2);

 

(you only need to do that once)

 

Or set overwrite:false on each of your tweens. Details about overwrite modes at http://www.greensock.com/overwritemanager/

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