Installation.
Annnimate components are built on GSAP. Install GSAP, then copy any component. That's the whole setup.
GSAP is free, including every plugin.
React and Next.js
Install GSAP and the official React helper, then register the plugins a component uses.
Plugins are sub-imports of gsap, not separate npm packages. Import them as gsap/ScrollTrigger and register before use.
Vue and Nuxt
Install GSAP, then drive it from the component lifecycle inside <script setup>. A gsap.context scopes selectors to the component root and reverts every tween on unmount.
HTML and vanilla JS
Load GSAP and the plugins you need before the closing </body> tag, then your animation script last. Core must load before any plugin.
Don't hardcode a version you'll forget to bump.
