Plugins
info
A plugin adds extra capabilities to GSAP's core. This allows the GSAP core to remain relatively small and lets you add features only when you need them.
Plugin Overview
Scroll Plugins
Text Plugins
SVG Plugins
Other Plugins
Eases
- CustomWigglerequires CustomEase
- CustomBouncerequires CustomEase
React
Installing/Loading a plugin
At the end of the day, all the plugins are just JS files - just like the core library. You can install them with script tags, via npm, with yarn, or even with a tgz file.
Head on over to our install helper to choose your own adventure.
Registering a plugin
Registering a plugin with the GSAP core ensures that the two work seamlessly together and also prevents tree shaking issues in build tools/bundlers. You only need to register a plugin once before using it, like:
//list as many as you'd like
gsap.registerPlugin(MotionPathPlugin, ScrollTrigger, MorphSVGPlugin);
Obviously you need to load the plugin file first. There is no harm in registering the same plugin multiple times (but it doesn't help either).