Installation

Components read GSAP from the page rather than bundling it, so there is one thing to install, and you do it once.

Load GSAP

terminal
npm install gsap

Expose it on window before any component script runs, and register the plugins the component lists under its dependencies.

example.js
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";

gsap.registerPlugin(ScrollTrigger);
window.gsap = gsap;
window.ScrollTrigger = ScrollTrigger;

Put this in your app's entry file, or in a module that every page imports first.

Which plugins

Each resource names what it needs. Some components need no GSAP at all (the Pixel Button, Wavy Accordion and Infinite List among them) and say so. Plugins currently used across the Vault:

PluginUsed for
ScrollTriggerScroll-driven components
CustomEaseThe library's own easing curve
Draggable and InertiaPluginDragging with momentum

Register only what a component asks for. A missing plugin is the most common reason a component sits still.

Smooth scrolling

Nothing in the Vault requires a smooth-scroll library. The previews on each resource page run with Lenis driving GSAP's ticker; if you use Lenis too, connect it to ScrollTrigger so scroll-driven components stay in sync.

example.js
import Lenis from "lenis";

const lenis = new Lenis({ autoRaf: false });
lenis.on("scroll", ScrollTrigger.update);
gsap.ticker.add((time) => lenis.raf(time * 1000));
gsap.ticker.lagSmoothing(0);

Checking it's there

Open the console and type window.gsap.version. If it prints a version, components will find it. If a component still does nothing, it logs one line saying what it couldn't find.