Animate

From OneWave-AI/claude-skills · View interactive version

Animate is an AI agent skill from the GitHub repository OneWave-AI/claude-skills. Generate animated videos and motion graphics from natural language descriptions. Creates a standalone Vite + React project with Framer Motion scenes that auto-play in the browser. Use when the user wants to create animations, motion graphics, video intros, animated presentations, or product demos.

How to use this skill

Skill file

Animation Generator

Create animated videos and motion graphics from a natural language description. Outputs a standalone Vite + React + Framer Motion project that plays in the browser.

Workflow

Step 1: Parse the Request

Break the user's description into a scene plan:

Step 2: Choose the Animation Stack

Auto-detect the best approach based on the request:

| Request Type | Stack | When to Use |

|---|---|---|

| Product intro, presentation, marketing | Framer Motion (default) | Scene-based with text, icons, transitions |

| Generative art, particles, patterns | p5.js | Creative/algorithmic visuals |

| 3D objects, environments, product renders | Three.js + react-three-fiber | 3D scenes needed |

| Simple text/logo animation | CSS animations only | Minimal, no heavy deps |

Default to Framer Motion unless the request clearly needs something else.

Step 3: Scaffold the Project

  1. Create a directory: ~/animations/[project-name]/
  2. Run the scaffold script: bash ~/.claude/skills/animate/scripts/scaffold.sh [project-name] [stack]
  3. Copy template files from ~/.claude/skills/animate/assets/template-files/ into the project

Step 4: Generate Scene Components

Read the references for animation presets and scene patterns:

For each scene, create a React component in client/src/components/video/video_scenes/:

Step 5: Generate the VideoTemplate

Create client/src/components/video/VideoTemplate.tsx:

Step 6: Customize Theme

Update client/src/index.css with the right colors:

Step 7: Gemini 3.1 Pro Enhancement (Optional)

If GEMINI_API_KEY environment variable is available:

  1. Read references/gemini-integration.md for API details
  2. Send the user's description to Gemini 3.1 Pro asking for:
  1. Use the Gemini output to inform scene generation
  2. If no API key, skip this step — Claude handles all creative decisions directly

Step 8: Build and Preview

cd ~/animations/[project-name]
npm install
npm run dev

Tell the user the animation is running at http://localhost:5173 and open it in the browser.

Scene Transition Reference (Quick)

Pick transitions that match the story beat:

Element Animation Reference (Quick)

Important Rules

  1. Always use vw units for sizing so animations look good at any resolution
  2. Keep scenes between 3-5 seconds each — total video 15-30 seconds
  3. Use AnimatePresence mode="wait" so one scene exits before the next enters
  4. Every scene must have a background treatment (gradient, image, or animated shape)
  5. Use staggered animations for lists and grids (staggerChildren: 0.1-0.2)
  6. Include a loading state if assets are heavy
  7. The project must be completely self-contained — no external dependencies beyond npm packages
  8. Do NOT use emojis anywhere in the generated code or content
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.