Share Posted July 2, 2022 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 More sharing options...
Solution Solution Share Posted July 2, 2022 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! 2 Link to comment Share on other sites More sharing options...
Share Posted July 2, 2022 Yup, everything @akapowl said is correct. this video should help explain the key components of GSAP 3 I also have a completely free beginner's course here: https://www.creativecodingclub.com/courses/FreeGSAP3Express It will give you a gentle introduction to the parts of GSAP you need to know to get up and running quickly. Enjoy! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now