Content
GSAP + ScrollTrigger
The industry-standard animation platform for complex timelines, scroll-driven narratives, and cross-surface choreography. GSAP handles what CSS transitions and Motion cannot: frame-perfect orchestration across heterogeneous targets (DOM, Canvas, WebGL, SVG), scroll-linked pinning and scrubbing, and timeline sequences with labels and callbacks.
When to use
- Scroll-driven pinning or scrubbing sections that teach the user something
- Multi-element orchestrated sequences with precise timing control
- Mixed-surface animations: DOM elements + Canvas + WebGL coordinated together
- Complex SVG or path animations with morphing
- Parallax effects that go beyond simple CSS transforms
- Any animation requiring frame-perfect control with
gsap.ticker
When NOT to use
- Simple component enter/exit animations in React — use Motion
- Hover, tap, and focus micro-interactions — use Motion gesture props
- Layout animations where elements reorder — use Motion
layoutprop - Static sites with no JavaScript — use CSS transitions/keyframes
- Dense documentation pages — do not add Lenis or scroll choreography
Core concepts
Tween types
| Method | Purpose | Example |
|---|---|---|
gsap.to() | Animate from current state to target |