Skip to content

gsap

Use when working with GSAP for timeline-based animations, ScrollTrigger scroll effects, text splitting animations, or layout transitions with Flip plugin. Also use when integrating GSAP with React or Next.js using useGSAP hook.

ModelSource
sonnetpack: frontend
Full Reference

┏━ πŸ”§ gsap ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with GSAP for timeline-based … ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

GreenSock Animation Platform (GSAP) v3.14.x β€” high-performance JavaScript animation. As of 3.13 (2025), all plugins are free including SplitText, MorphSVG, ScrollSmoother, thanks to Webflow’s sponsorship.

ItemValue
Version3.14.x
Installnpm install gsap @gsap/react
CDNhttps://cdnjs.cloudflare.com/ajax/libs/gsap/3.14.2/gsap.min.js
Docshttps://gsap.com/docs/v3/
LicenseFree β€” commercial use included
React Hook@gsap/react β€” useGSAP()
FileContents
reference/setup.mdInstallation, plugin registration, Next.js App Router setup, licensing
reference/core-methods.mdgsap.to(), gsap.from(), gsap.fromTo(), gsap.set(), tween control, callbacks
reference/timeline.mdTimeline creation, position parameters, labels, complex sequences, timeline control
reference/scroll-trigger.mdTrigger config, start/end syntax, scrub, pin, snap, toggleActions, batch, parallax, horizontal scroll
reference/split-text.mdSplitText.create(), autoSplit, onSplit, masking, aria, deepSlice, ScrollTrigger integration
reference/flip.mdFlip.getState(), Flip.from(), Flip.to(), Flip.fit(), React integration, data-flip-id
reference/react.mduseGSAP, contextSafe, Strict Mode handling, gsap.context(), SSR guards, lazy loading
reference/easing.mdBuilt-in easings, CustomEase, RoughEase, SlowMo, quick reference table
reference/performance.mdTransform vs layout properties, will-change, batch vs individual, refresh, code splitting
reference/changelog.md3.14.x changes, 3.13 major release notes, pre-3.13 migration guide

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.