orchestrating-react-animations

Integrate GSAP and Framer Motion animations within React components.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/alexejluft/brudi --skill orchestrating-react-animations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orchestrating-react-animations
Source: https://github.com/alexejluft/brudi/tree/main/skills/orchestrating-react-animations
Command: npx skills add https://github.com/alexejluft/brudi --skill orchestrating-react-animations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

This Skill addresses common issues when integrating animation libraries like GSAP or Framer Motion into React applications, preventing animation failures, lifecycle conflicts, and SSR crashes.

Core Features & Use Cases

  • Correct GSAP Usage: Guides on using gsap.set() and gsap.to() instead of gsap.from() to avoid initial state issues.
  • Framer Motion Integration: Provides examples for simple enter animations and scroll-triggered effects.
  • Lifecycle Management: Emphasizes correct placement of animations within useEffect and proper cleanup.
  • Use Case: Ensure smooth, reliable animations on your React website, preventing visual glitches and ensuring compatibility with features like StrictMode and server-side rendering.

Quick Start

Use the orchestrating-react-animations skill to implement a GSAP animation for a React component using a provided ref.

Frequently Asked Questions about orchestrating-react-animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do my React GSAP animations break or flash on initial render?

React GSAP animations often break when using `gsap.from()` due to initial state issues. Using `gsap.set()` to establish the starting state before applying `gsap.to()` prevents visual glitches and ensures reliable animation initiation within the component lifecycle.

How do I properly clean up GSAP and Framer Motion animations in useEffect?

To properly clean up React animations in `useEffect`, you must return a cleanup function that kills GSAP tweens or removes Framer Motion listeners. This prevents memory leaks and lifecycle conflicts during component unmounting or StrictMode double-rendering.

What's the best way to trigger scroll-based animations in React with GSAP ScrollTrigger?

The best way to trigger scroll-based React animations is using GSAP ScrollTrigger or Framer Motion's `useInView` hook. These patterns ensure animations execute precisely when elements enter the viewport, correctly scoped within `useEffect` for optimal lifecycle management.

Can I use Framer Motion for scroll-triggered effects without causing SSR crashes?

Yes, you can use Framer Motion for scroll-triggered effects without SSR crashes by following declarative animation patterns. Correct placement within `useEffect` and utilizing hooks like `useInView` ensure compatibility with server-side rendering and StrictMode environments.

Does orchestrating React animations require specific patterns for StrictMode compatibility?

Orchestrating React animations requires specific lifecycle patterns for StrictMode compatibility. Correct placement within `useEffect` and proper cleanup of GSAP contexts or Framer Motion instances are essential to handle double-invocation behaviors without visual glitches.