reanimate: copy any animation and prove the copy moves the same (install steps)
The short version
reanimate is a free, MIT-licensed skill for Claude Code by Niaz Morshed (github.com/NiazMorshed2007/reanimate). Ask an AI to copy an animation from a link or a screenshot and it makes one pass, calls it done, and still moves wrong, because it never saw the motion and cannot tell how far off it is.
reanimate fixes that by measuring. It records the original, writes down what moves and when, rebuilds it in your own code, records the copy the same way, compares the two, fixes the biggest difference and records again. Usually that takes two to five rounds. On the Visa card on stripe.com, the README reports the copy's tilt settling within 0.4 px of the original.
This page is the install, how to ask for it, and what to check before you use what it builds.
| Step | What it does |
|---|---|
| Record | Films the original in a headless browser at a fixed window size and frame rate; keeps every CSS and Web Animations animation it finds and where chosen elements sit on every frame |
| Spec | One row per element per property: start, duration, from → to, easing, stagger |
| Build | Writes the animation with what your project already uses: CSS, Framer Motion, GSAP, three.js |
| Verify | Films the copy the same way and compares timing, easing and pixels |
| Repeat | Fixes the biggest difference and films again, usually 2 to 5 rounds |
Install it
| Step | What you do | Done when |
|---|---|---|
| 1 | Install Bun 1.1 or later (macOS or Linux; Windows is untested) | bun --version prints 1.1 or higher |
| 2 | Run the install command below | The skills CLI finishes without an error |
| 3 | Open Claude Code and ask for an animation with /reanimate |
The first run installs ffmpeg and Chromium, about 250 MB, then records |
npx skills add NiazMorshed2007/reanimate -g
# add -a claude-code to skip the question about which agents to set up
No API keys are needed. Other agents that read SKILL.md can install it too, but the README says it has only been tested with Claude Code.
How to ask for it
Say what you want, where it is and where it should go. The level of match depends on your words:
| Say | Level | Must match |
|---|---|---|
| "clone this animation" | Moves the same (default) | trigger, order, stagger, timing within 80 ms, easing family, distance |
| "match it exactly", "pixel-perfect" | Looks the same | all of the above plus fonts, sizes, colours, spacing and assets; 2 % or less mean pixel mismatch |
| "clone X and add Y" | Yours on top | the cloned parts at one of the levels above; your additions kept separate |
Copy these prompts
Paste them into Claude Code after installing.
1. Copy one animation into my project
/reanimate the hero entrance on [URL], into [path/to/Component.tsx]. Use what this project already uses for animation. When it is done, show me the report: which rows matched and which did not, with the reason.
2. Copy a recording, not a site
/reanimate this loader, [start time] to [end time] of [path/to/recording.mov], into [path/to/Loader.tsx]. Match the timing within 80 ms and tell me the final timing error per element.
3. Copy it and make it mine
/reanimate the logo marquee from [URL], with my own logos and pause on hover. Keep the cloned motion separate from my additions so I can change the content without touching the timing.
If you are building something like this
Three ideas are worth copying, with or without this skill. First, close the loop with numbers: record the original and the copy the same way and compare them, so "done" means a measured difference, not a feeling. Second, fix one thing per round, the biggest difference, and record again. Third, put what still does not match in a report with the reason instead of hiding it. The repo's references/ folder and scripts/ (capture, compare, easing fit, contact sheets) show one way to do each.
What to know before you rely on it
- Pages behind a login, YouTube and Loom cannot be recorded directly; give it a screen recording instead.
- Physics springs are fitted from their overshoot and settle time, not read from the source.
- Fonts, images and code from another site still belong to their owners. Make sure you may use what you copy; treat the result as a close starting point and build your own on top.
- The README says its examples are studies of the technique and not affiliated with the sites they recreate.
- Check the report after every run. A row marked as not matching is the skill telling you where to look.
Run this on your codebase
Find every animation in this project (CSS transitions, Web Animations, GSAP, Framer Motion, three.js). For each one, list the file, what triggers it, its duration and easing, and whether any value is hard-coded in more than one place. Then tell me which two would be hardest to reproduce exactly if I had to rebuild them from a screen recording.