Animation skill · Workflow

Recreate from video

Rebuild any animation from a clip by measuring its beats.

Give this skill to your AI agent

Run this in your project. Claude Code picks it up from .claude/skills; for other agents, paste the file into their rules.

mkdir -p .claude/skills/recreate-from-video && curl -fsSL https://kitesmotion.com/skills/recreate-from-video/SKILL.md -o .claude/skills/recreate-from-video/SKILL.md
Download SKILL.md

Turn a reference clip into working code by measuring it, not guessing.

1. Watch and break it into beats

  • Watch at full speed, then at 0.25x.
  • Write each beat as: trigger, element, property, from, to, start time, duration.
  • Example: "Tap · button · width · 120px to 220px · 0ms · 300ms".

2. Estimate the numbers

  • Count frames: at 60fps, 18 frames is about 300ms.
  • Overshoot or wobble means a spring; smooth stop means ease-out.
  • Measure sizes against something known on screen (an iPhone screen is 393pt wide).
  • Note colours with a picker and corner radii by eye.

3. Pick the stack

  • Web UI: React plus Framer Motion or CSS.
  • iOS: SwiftUI. Android or cross-platform: React Native plus Reanimated.
  • Particles, shaders or 3D: Canvas, WebGL or three.js.

4. Build in layers

  1. Static layout that matches the first and last frames.
  2. The main movement with the right timing.
  3. Secondary motion: stagger, blur, shadows, colour.
  4. Interaction states, accessibility and reduced motion.

5. Compare side by side

Record your build and play it next to the reference at 0.25x. Adjust the largest differences first: timing, then distance, then easing.

Using AnimationPrompt clips

Every clip on AnimationPrompt has a prompt that already lists layout, colours, timings and easing. Copy it, paste it into your agent along with this skill, and ask for a first version, then refine with steps 4 and 5.

More skills