Jump to content
Search Community

tweenmax.to() VS gsap.to()

Cloudboy22 test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

Hi, 

i am an absolute newbie to GSAP. i was watching a tutorial and in that it uses tweenLite.to ()  . On the otherhand other video user

gsap.to()

Now i am confused... as i guess both do some animations. right?? 

please help.

thanks

Link to comment
Share on other sites

  • Solution

 

Yes, both do animations. 

 

TweenLite is just an older version. Before GSAP3, which uses the gsap.to() syntax, there were different 'packages' like TweenLite, TweenMax, TimelineLite and TimelineMax, that had different feature-sets with different file-sizes, so you could choose a smaller 'package' if you didn't need all of the features and wanted to save some kb.

That changed with GSAP3 - it now has all the features in the core and was optimized with regard to the kb quite a bit.

 

If you don't depend on older versions because they are deeply rooted in older projects of yours, it's always best to use the latest version.

 

Here's a link to the migration guide, in case you want to update some of those cases you saw in the videos to the newer syntax.

 

Welcome to the GSAP forum, happy learning and happy tweening!
 


 

  • Like 2
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...