What problem does it solve?
Helps front-end developers and designers reduce animation jank and maintain smooth 60fps by providing GSAP-specific performance guidance that minimizes layout, paint, and compositor overhead.
Core Features & Use Cases
- Prefer transforms and opacity to keep animation work on the compositor and avoid layout-heavy properties like width, height, top, and left.
- will-change guidance: apply will-change sparingly to elements that will animate to hint layer promotion.
- Batching and reads/writes: avoid layout thrashing by grouping DOM reads then writes or letting GSAP handle batched updates.
- Large lists and staggers: use stagger, virtualization, or reuse timelines to avoid hundreds of simultaneous tweens.
- Frequently-updated properties: use gsap.quickTo() for mouse followers and other high-frequency updates.
- ScrollTrigger tips: limit pinning, use appropriate scrub values, and debounce ScrollTrigger.refresh() to reduce work.
Quick Start
Use the gsap-performance skill to analyze an animation and apply transforms and opacity, add will-change selectively, batch reads/writes, use stagger or gsap.quickTo(), and debounce ScrollTrigger.refresh to improve frame rate.