Jump to content
Search Community

TweenLite and stagger

Colir test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi,

I would like to know, id there is a way to tween multiple object, with a little delay by usin tweenLite

 

The idea is to have the staggerTo effect but without tweenMax, and without create a loop throw  my objects

 

thanks

Link to comment
Share on other sites

No, it really comes down to a choice between file size and conveniences like that, Colir. We try to keep TweenLite very tight and focused, but we also realize that many developers really appreciate conveniences like staggerTo() and they don't mind sacrificing some kb, so we created TweenMax. If we keep adding TweenMax's conveniences into TweenLite, well, there'd be no point in having 2 distinct tools. 

 

It should be as simple as creating a little loop in your code and incrementing the delay each time through the loop, that's all. Is there a reason you don't want to do that? Do you need help with it? You could even create your own little function that does it for you so that you can reuse it anywhere. 

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