Skip to content

A Claude Code skill that reverse-engineers any animation frame by frame, then proves the copy moves the same.

Rewrite the site and README copy in a plainer voice

NiazMorshed20077976095d4ce6
diff --git a/README.md b/README.md
index 4d7e8c4..3830d2b 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<h1 align="center">reanimate</h1>
-<p align="center"><b>Reverse-engineer any animation, frame by frame. Then prove the copy moves the same.</b><br>A Claude Code skill that works from a live site, a screen recording, an mp4, a gif or a Lottie file.</p>
+<p align="center"><b>Reverse-engineer animations you like. Build your own on top.</b><br>A Claude Code skill that works from a live site, a screen recording, an mp4, a gif or a Lottie file.</p>
<p align="center">
<a href="https://code.claude.com/docs/en/skills"><img src="https://img.shields.io/badge/Claude_Code-skill-171717?style=flat-square&logo=claude&logoColor=white" alt="Claude Code skill"></a>
@@ -14,9 +14,11 @@
</p>
<p align="center"><sub>Three cards from stripe.com. Top: the original. Bottom: the copy, filmed the same way.</sub></p>
-Copying an animation by eye always ends the same way. It looks right in a screenshot and feels off in motion: the easing is a little sharp, the second line starts a beat late, the card lifts four pixels instead of six. Nobody can say what's wrong, so nobody fixes it.
+A lot of good ideas start on someone else's site: a hover, a hero entrance, a card that does something nice. Ask an agent to rebuild one from a link or a screenshot, and it usually makes one pass, calls it done, and isn't close. A screenshot doesn't carry motion, and the agent has no way to tell how far off it is.
-reanimate measures instead. Claude films the original, writes down every timing and easing, rebuilds the animation in your code, films the copy the same way, and compares the two until the numbers agree. You get the code and the evidence.
+reanimate gives it a target and a way to check. Claude films the original (a live site, a screen recording or a gif), writes down the timings and easings from the frames, rebuilds the animation with what your project already uses, films its version the same way and compares the two.
+
+That comparison is what keeps it going. An agent will keep working for as long as each round tells it what's still off and what "close enough" means. So it fixes the biggest difference, films again, and stops when the numbers match, not when the first try looks plausible. You end up with a close starting point in your own code, ready for your content, your colours and your own ideas.
## Install
@@ -40,15 +42,15 @@ Needs [Bun](https://bun.sh) 1.1 or later, on macOS or Linux (Windows is untested
1. **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. For canvas and WebGL it also traces the GPU calls (shaders, uniforms, draw calls, the three.js scene) on a virtual clock that makes every capture identical.
2. **Spec.** One row per element per property: start, duration, from → to, easing, stagger. A row with a "?" means the frames haven't been read yet.
3. **Build.** It writes the animation with what your project already uses: CSS, Framer Motion, GSAP, three.js.
-4. **Verify.** It films the clone with the exact same command, then compares timing, pixels and easing curves and makes side-by-side sheets.
-5. **Repeat.** It fixes the smallest thing the evidence points at and films again, usually 2 to 5 rounds. A row that still fails after 5 is reported with its numbers and the reason.
+4. **Verify.** It films the copy the same way, compares timing, easing and pixels, and makes side-by-side sheets.
+5. **Repeat.** It fixes the biggest difference and films again, usually 2 to 5 rounds. Whatever still doesn't match after 5 is listed in its report, with the reason.
<p align="center">
<img src=".github/assets/hover.webp" width="520" alt="The card issuing card hovered on stripe.com and in the copy, side by side: the same pointer path makes the Visa card tilt the same way in both.">
</p>
<p align="center"><sub>The same pointer path on stripe.com and on the copy. The tilt settles within 0.4 px.</sub></p>
-How close the copy has to be depends on your words:
+By default it matches the motion and leaves the look to you. Ask for more or less:
| Say | Level | Must match |
|---|---|---|
diff --git a/site/public/og.png b/site/public/og.png
index 1b353b5..d056bc2 100644
Binary files a/site/public/og.png and b/site/public/og.png differ
diff --git a/site/src/app/globals.css b/site/src/app/globals.css
index 65a8771..6c63d12 100644
--- a/site/src/app/globals.css
+++ b/site/src/app/globals.css
@@ -103,10 +103,6 @@ ul.list li + li { margin-top: 8px; }
.section__head::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--rule); }
.section__head .num { order: 2; color: var(--muted); }
-blockquote.rule { margin: 26px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--fg); }
-blockquote.rule p { margin: 0; font-size: 17px; }
-blockquote.rule cite { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-style: normal; }
-
/* key/value table */
.kv { width: 100%; margin-top: 26px; border-collapse: collapse; }
.kv tr { border-top: 1px solid var(--rule); }
@@ -200,13 +196,4 @@ blockquote.rule cite { display: block; margin-top: 6px; color: var(--muted); fon
@media (prefers-reduced-motion: reduce) { .tip__box { transition: none; } }
.figure--sheet { max-width: 420px; }
-/* FAQ */
-.faq { margin-top: 22px; border-top: 1px solid var(--rule); }
-.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
-.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
-.faq summary::-webkit-details-marker { display: none; }
-.faq summary::after { content: "+"; color: var(--muted); }
-.faq details[open] summary::after { content: "–"; }
-.faq details p { margin: 8px 0 0; color: #404040; }
-
.footer { margin-top: 96px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
diff --git a/site/src/app/layout.tsx b/site/src/app/layout.tsx
index a11f459..d3dfe84 100644
--- a/site/src/app/layout.tsx
+++ b/site/src/app/layout.tsx
@@ -12,7 +12,7 @@ const siteUrl = process.env.SITE_URL || "http://localhost:3000";
const title = "reanimate · a skill for Claude Code";
const description =
- "Point Claude at any animation, on a live site, in a video or a gif, and it rebuilds it frame by frame in your codebase, then records the copy and compares the two until they move the same.";
+ "Point Claude at an animation you like, on a live site, in a video or a gif, and it rebuilds it in your codebase as a starting point for your own.";
export const metadata: Metadata = {
metadataBase: new URL(siteUrl),
diff --git a/site/src/app/page.tsx b/site/src/app/page.tsx
index a558b76..a8d012b 100644
--- a/site/src/app/page.tsx
+++ b/site/src/app/page.tsx
@@ -13,7 +13,6 @@ const sections: NavItem[] = [
{ id: "use", label: "Using it" },
{ id: "close", label: "How close" },
{ id: "limits", label: "Limits" },
- { id: "questions", label: "Questions" },
{ id: "examples", label: "Examples" },
];
@@ -21,8 +20,8 @@ const steps: [string, string][] = [
["Record.", "It films the original in a real browser, at a fixed size and frame rate, and collects every animation the page declares."],
["Write it down.", "One row per moving part: when it starts, how long it takes, how far it goes, on which curve."],
["Rebuild.", "In your code, with what the project already uses: CSS, Framer Motion, GSAP, three.js."],
- ["Compare.", "It films the copy with the exact same command, so any difference is in the copy, not the camera. Then it compares timing, pixels and easing curves."],
- ["Repeat.", "It fixes the biggest gap and films again, usually two to five rounds. Anything still failing is reported with its numbers."],
+ ["Compare.", "It films the copy the same way and compares timing, easing and pixels."],
+ ["Repeat.", "It fixes the biggest difference and films again, usually two to five rounds. Whatever still doesn’t match is listed in its report."],
];
const prompts: [string, React.ReactNode][] = [
@@ -32,13 +31,6 @@ const prompts: [string, React.ReactNode][] = [
["Add your own", <>the logo marquee on https://example.com, <code>with our logos and pause on hover</code></>],
];
-const faq: [string, string][] = [
- ["Does it copy the other site’s code?", "It reads what the browser receives: CSS, keyframes and, for canvas, what the page sends to the GPU. Then it writes its own version in your stack. Licences still apply to whatever you copy."],
- ["Which frameworks does it write?", "Whatever your project already uses. It reads package.json and your components first, and won’t add GSAP to a project that animates with CSS."],
- ["Can it clone scroll animations?", "Yes. Scroll-linked motion is compared by scroll position instead of time."],
- ["What if something won’t match?", "After five rounds it stops and tells you which part failed, with its numbers and the reason. It never quietly lowers the bar."],
-];
-
function Section({ id, n, title, children }: { id: string; n: number; title: string; children: React.ReactNode }) {
return (
<section id={id} className="section">
@@ -109,12 +101,12 @@ export default function Home() {
</header>
<p className="lede">
- Point Claude at an animation, and it rebuilds it <em>frame by frame</em>, then proves the copy moves the same.
+ Point Claude at an animation you like on another site, and it rebuilds it in your code for you to build on.
</p>
<CopyCommand command={INSTALL} />
<p className="hint">
- Then, in Claude Code, type <code>/reanimate</code> and say what to copy. <a href="#use">How to ask ↓</a>
+ Then, in Claude Code, type <code>/reanimate</code> and say what you want. <a href="#use">How to ask ↓</a>
</p>
<div className="meta">
@@ -124,10 +116,13 @@ export default function Home() {
</div>
<p>
- Copying an animation by eye rarely works. The copy looks right in a screenshot and feels off in motion: the easing is a bit sharper, a line starts a beat late. Nobody can say what’s wrong, so nobody fixes it.
+ A lot of good ideas start on someone else’s site: a hover, a hero entrance, a card that does something nice. Ask an agent to rebuild one from a link or a screenshot, and it usually makes one pass, calls it done, and isn’t close. A screenshot doesn’t carry motion, and the agent has no way to tell how far off it is.
+ </p>
+ <p>
+ reanimate gives it a target and a way to check. It records the original, whether it’s a live site, a screen recording or a gif, and Claude writes down the timings and easings from the frames. It rebuilds the animation with what your project already uses, records its version the same way, and compares the two.
</p>
<p>
- reanimate <em>measures</em> instead. Claude records the original, whether it’s a live site, a screen recording or a gif, writes down every timing and easing, and rebuilds it in your code. Then it records the copy the same way and compares the two until the numbers agree.
+ That comparison is what keeps it going. An agent will keep working for as long as each round tells it what’s still off and what “close enough” means. So it fixes the biggest difference, records again, and stops when the numbers match, not when the first try looks plausible. You end up with a close starting point in your own code, ready for your content, your colours and your own ideas.
</p>
<figure className="figure">
@@ -143,7 +138,7 @@ export default function Home() {
</p>
<Section id="how" n={1} title="How it works">
- <p>Every clone runs the same loop, and it doesn’t stop until the comparison passes.</p>
+ <p>Each rebuild runs the same loop.</p>
<ol className="steps">
{steps.map(([title, body], i) => (
<li key={title}>
@@ -153,20 +148,20 @@ export default function Home() {
))}
</ol>
<p>
- For canvas and WebGL, pixels aren’t enough. The skill also records what the page sends to the GPU: shaders, uniforms and the three.js scene, on a clock it steps frame by frame, so two recordings come out identical.
+ For canvas and WebGL it also records what the page sends to the GPU: shaders, uniforms and the three.js scene. The page runs on a clock the skill steps frame by frame, so two recordings come out the same.
<Sidenote n={2}>Random particles included: it seeds the page’s random numbers too.</Sidenote>
</p>
<figure className="figure figure--sheet">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img className="sheet" src={media("stripe-issuing", "sheet.webp")} alt="A comparison sheet: the card issuing hover on stripe.com, in the copy, and in red the pixels that differ. Only thin outlines of the card's edge and the title differ." width={816} height={975} loading="lazy" />
<figcaption className="figure__caption">
- <span>Every round ends with a sheet like this: the original, the copy, and in red the pixels that differ.</span>
+ <span>Each round produces a sheet like this: the original, the copy, and in red the pixels that differ.</span>
</figcaption>
</figure>
</Section>
<Section id="use" n={2} title="Using it">
- <p>In Claude Code, say what to clone, where it is and where it should go:</p>
+ <p>In Claude Code, say what you want, where it is and where it should go:</p>
<div className="prompts">
{prompts.map(([label, text]) => (
<div key={label}>
@@ -182,7 +177,7 @@ export default function Home() {
</Section>
<Section id="close" n={3} title="How close">
- <p>Your words decide how close the copy has to be.</p>
+ <p>By default it matches the motion and leaves the look to you. Ask for more or less:</p>
<Rows
rows={[
["Moves the same", <>The default. Same trigger, order and timing, within 80 ms, the same kind of easing and distance. Text, colours and fonts can be yours.</>],
@@ -201,18 +196,7 @@ export default function Home() {
</ul>
</Section>
- <Section id="questions" n={5} title="Questions">
- <div className="faq">
- {faq.map(([q, a]) => (
- <details key={q}>
- <summary>{q}</summary>
- <p>{a}</p>
- </details>
- ))}
- </div>
- </Section>
-
- <Section id="examples" n={6} title="Examples">
+ <Section id="examples" n={5} title="Examples">
<p>
Hover a clerk.com card to play it; the copies use the free Geist font, so only the lettering differs. For stripe.com and workos.com, the original plays on the left and the copy on the
right.