---
name: recreate-from-video
description: Use when rebuilding an animation from a reference video, GIF or AnimationPrompt clip; break it into beats, estimate timing and easing, then implement and compare.
---

# Recreate an animation from a video

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.
