Nov 15, 2026
Clone Any Web Animation with the reanimate Skill
reanimate records an animation, rebuilds it in your code, then films your copy until the numbers match — a 2k-star Claude Code skill with a verify loop.
A lot of good motion design lives on someone else's site. Ask an agent to rebuild one from a link and it makes one pass, calls it done, and misses — it can't see the motion or tell how far off it is.
reanimate is a 2k-star Claude Code skill that records the original, rebuilds it in your code, then records the copy the same way and compares the two. Each round shows what is still off, so the agent keeps going until the numbers match. It works from a live site, a screen recording, an mp4, a gif or a Lottie file.
Installation
npx skills add NiazMorshed2007/reanimate -g
The skills CLI asks which agents to set up; add -a claude-code to skip the question. You need Bun 1.1 or later, on macOS or Linux (Windows is untested). The first run installs a static ffmpeg into the skill's folder and Playwright's Chromium into Playwright's usual cache — about 250 MB together. No API keys. Other agents that read SKILL.md can install it too, but the README says it has only been tested with Claude Code.
Real Workflow: Clone a Hero Entrance
Say what you want, where it is and where it should go:
/reanimate the hero entrance on https://example.com, into components/Hero.tsx
The skill then runs a five-stage loop:
- Record. It films the reference in a headless browser at a fixed viewport and frame rate: a video, numbered frames, every CSS and Web Animations API animation it finds, and the position of chosen elements on every frame.
- Spec. One row per element per property: start, duration, from → to, easing, stagger. A row with a
?means the frames have not been read yet. - Build. It writes the animation with what your project already uses: CSS, Framer Motion, GSAP, three.js.
- Verify. It films the copy the same way, compares timing, easing and pixels, and makes side-by-side sheets.
- Repeat. It fixes the biggest difference and films again, usually 2 to 5 rounds. Whatever still does not match after 5 is listed in its report, with the reason.
How closely it matches depends on what you ask for:
| 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 % mean pixel mismatch |
| "clone X and add Y" | Yours on top | the cloned parts at one of the levels above; your additions kept separate |
Real Workflow: Canvas, WebGL and 3D
A canvas only shows pixels, so reanimate records the calls that drew them. With --gl it traces WebGL, WebGPU and canvas 2D, hooks the three.js, Pixi, PlayCanvas, Babylon and OGL scene graphs through their own devtools entry points, and reaches into workers. Out come the shader sources, every constant uniform, the render passes, the textures and models, and each animated uniform or object property as a curve that can be fitted and compared.
--clock virtual runs the page on a clock that is advanced frame by frame, with Math.random seeded in the page and its workers. Every frame is then exact however slow the GPU is — two captures of a WebGL globe with random arcs and worker-generated dots come out byte-identical. The README reports that on live stripe.com this recovered the issuing card's four-pass composite and its shaders, and recorded the card's tilt as a curve: −0.174 → 0.262 rad between 33 and 1800 ms on the pointer path.
Tips
- By default it matches the motion and leaves the look to you. Say "match it exactly" only when you also want fonts, sizes, colours, spacing and assets.
- The README's examples table reports per-clone measurements — the Vercel Toolbar clone came out 417 of 417 frames identical, and the fluid-ocean clone showed 0 px difference over 12 seconds. Most examples took 30 to 90 minutes.
- Only
skills/reanimate/is installed by the skills CLI; thesite/folder (which runs the examples live) stays out of the install. - Pages behind a login, YouTube and Loom cannot be recorded directly — hand it a screen recording instead.
- Physics springs are fitted from their overshoot and settle time, not read from the source, so treat spring parameters as approximations.
When Not to Use This
- The page is not reachable from your machine — the recorder needs a URL it can open, or a recording you provide.
- You want to reuse a site's fonts, images or code as-is: the README notes that what you clone from another site still belongs to its owners, and its example clones are published as a study of the technique, not affiliated with or endorsed by the sites involved.
- The animation is a one-off decoration — the full record-verify loop may be more than it needs.
See the leaderboard for more skills. For video-side reverse engineering, see OpenMotion, and for motion-graphics skills see Emil's UI animation skills.