AI column

Design@donghyeok99Staff

reanimate: clone an animation frame by frame, then prove it

A copy of stripe.com's tilting card, driven along the same pointer path, settles within 0.4 px of the original

/reanimate records three cards entering, records the copy the same way, and closes the gap round by round until it is within the default ±80 ms.
/reanimate records three cards entering, records the copy the same way, and closes the gap round by round until it is within the default ±80 ms.
Who
A Claude Code skill by Niaz Morshed (NiazMorshed2007), for frontend developers and designers who work with web animation.
When
The repository opened on 29 October 2026; there is no release yet.
Where
Runs in Claude Code on your own macOS or Linux machine. Windows is untested.

What was hard

When you want an animation you saw on someone else's site, an agent given a link or a screenshot makes one pass and calls it done. Open it and the timing and easing are off. The agent could neither see the motion nor tell how far off it was.

What it does about it

reanimate records the original, rebuilds it in your code, then records the copy the same way and compares the two. Each round puts what is still off next to its numbers, so the agent fixes the biggest difference and films again until the numbers match. By default it matches the motion and leaves the look to you; say "match it exactly" and fonts and colours must match too.

From the demo: widgets on stripe.com, resend.com and clerk.com, matched
From the demo: widgets on stripe.com, resend.com and clerk.com, matched
Three cards from stripe.com: the original on top, reanimate's copy below
Three cards from stripe.com: the original on top, reanimate's copy below
The same pointer path tilts the card the same way on stripe.com and the copy
The same pointer path tilts the card the same way on stripe.com and the copy

How it runs inside

  1. 1

    You → Claude Code

    /reanimate the hero entrance on a URL, into a fileYou say what, where from and where to; it settles the scope and the fidelity (motion by default) first.skills/reanimate/SKILL.md
  2. 2

    Claude Code → scripts/capture.ts

    The original, at a fixed viewport and frame rateA headless browser records video, frames, declared animations and each tracked element's position per frame.skills/reanimate/scripts/capture.ts
  3. 3

    scripts/capture.ts → spec.md

    One row per element per property: start, duration, easingThe motion spec is filled from the capture and easing fits; a row with a "?" means more frames to read.skills/reanimate/references/analysis.md
  4. 4

    spec.md → Your component

    Built with your CSS, Framer Motion, GSAP or three.jsIt uses the animation library your project already has rather than adding one.skills/reanimate/references/implementation.md
  5. 5

    Your component → scripts/compare.ts

    The copy filmed the same way, compared frame by frameTiming error, pixel mismatch and diff images; the biggest difference is fixed first, usually over 2 to 5 rounds.skills/reanimate/scripts/compare.ts
  6. 6

    scripts/compare.ts → Your component

    Passing code plus reference, copy and diff sheetsThe last round's numbers and side-by-side sheets stay as evidence; what still differs is listed with a reason.skills/reanimate/scripts/sheet.ts

What goes in, what comes out

The Vercel Toolbar on vercel.com417 of 417 frames identical, every change on the same frame
The cube in the resend.com heroA three.js copy with every rotation exact over 25 s and 0.11 % of pixels different
262,144 dots rolling like a sea on vercel.com/fluidA WebGPU copy with 0 px different over 12 s, light and dark

Is it for you

Good for

  • Bringing an entrance or hover animation you liked into your own component
  • Rebuilding motion that only exists as a screen recording or a GIF
  • Recovering the shaders and constants behind a WebGL or three.js scene
  • When you need numbers, not "looks about right"

Not for

  • Pages behind a login, YouTube and Loom can't be recorded directly; hand it a screen recording.
  • Built for macOS and Linux; Windows is untested. The first run downloads about 250 MB of ffmpeg and Chromium.
  • The README's examples took most of their agents 30 to 90 minutes each.
  • Fonts, images and code from another site still belong to their owners; check you may use what you copy.

Reviewed by Devalley’s editor before publishing. How the column is made

Sign in to post, comment and like.Sign in

Report

Reason

Read the community rules