Jump to content
Search Community

TimelineMax in relation to CSSPlugin

Thomas James Thorstensson 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 revisited an old html project of mine where I am using TimelineMax and CSSPlugin.

 

Am I right in saying that I no longer need to rely on CSSPlugin with TimelineMax since for example with TweenMax we can now animate css properties directly?

 

If I no longer need CSSPlugin, is there a away from TimelinMax to do the old trick:

 

CSSPlugin.defaultForce3D = true;

 

Thanks in advance, Thomas

Link to comment
Share on other sites

Hi @Snoop

 

Keep in mind that with GSAP the CSSPlugin is what animates CSS properties within TweenMax. TweenMax includes the CSSPlugin and other GSAP plugins.

 

But say you weren't going to use TweenMax, but TweenLite, TimelineLite or TimelineMax. Then you would need the CSSPlugin as a separate script since the CSSPlugin is what GSAP uses to animate CSS properties.

 

TweenMax: https://greensock.com/docs/TweenMax

  • Includes all of the following : TweenLite, TweenMax, TimelineLite, TimelineMax, CSSPlugin, EasePack, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin

TimelineMax: https://greensock.com/docs/TimelineMax

  • Includes the following : TimelineLite, TweenLite, and EasePack. It does not include the CSSPlugin.

So if you use TweenMax in your project then it will already have the CSSPlugin included, you don't have to include it separately.

 

Hope this helps, Happy Tweening :)

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