What problem does it solve?
This Skill helps you create GSAP animations in React and Next.js without common lifecycle bugs, selector collisions, or cleanup issues that cause leaks and broken UI state.
Core Features & Use Cases
- Client-only animation setup: Keep GSAP work inside React-safe lifecycles so animations run only in the browser.
- Scoped targeting with refs: Use container refs and gsap.context() to limit selectors to the right component.
- Automatic cleanup: Revert animations on unmount and avoid stale tweens, detached-node updates, and memory leaks.
- Event-driven motion: Wrap callbacks with contextSafe when animations are created after the initial hook runs.
- Use case: Build entrance animations, interactive hover effects, and scroll-ready component motion in React apps while keeping code maintainable and safe.
Quick Start
Use the gsap-react skill to animate a React component with useGSAP, a scoped ref, and automatic cleanup on unmount.