Installation

GClass ships as the npm package gclass-anims. GSAP is a regular dependency and is installed automatically - nothing is bundled or redistributed.

bash
npm install gclass-anims

The package ships dual ESM + CJS and is framework-agnostic. It never touches your build config: every feature is driven by class names you put on markup. ESM is dist/gclass.esm.js and CJS is dist/gclass.cjs via vite.lib.config.js (GSAP is external, not bundled). The build is tree-shakable with sideEffects: false and prepublishOnly: build.

Requirements

gsap ^3.15Installed automatically as a dependency (package.json:52 gsap ^3.15.0)
Node >=16Required for build (package.json:56 engines)
Modern browserSupports ES modules; CJS via require() also available
dist/gclass.esm.jsESM entry (package.json:7 module, :10 exports import)
dist/gclass.cjsCJS entry (package.json:6 main, :13 exports require)