Jump to content
Search Community

Is the latest version of GSAP 【gsap.registerPlugin(ScrollTrigger)】 required?

sagexiang test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hi,

 

Even if your code is working as expected, we strongly recommend registering the plugins that you'll be using in order to prevent unexpected results and Tree Shaking from build tools (webpack, Vite, etc.).

 

Registering the plugins is something that doesn't require any logic whatsoever (just execute a method) and has great upside going forward, especially when it becomes a habit. This is the the healthy habit type ;) 

 

If you keep having questions about this, please create a minimal demo or provide a better description of the scenario you have.

 

Happy Tweening!

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