Reanimate: A Claude Code Skill That Copies Any Animation

Reanimate: A Claude Code Skill That Copies Any Animation

Reanimate reverse-engineers motion frame by frame and proves the clone matches. Here's how to install it, what it gets right, and where it stumbles.

What you will learn

  • What Reanimate does and the exact problem it solves for frontend developers
  • How to install and run the skill inside Claude Code
  • A tiny end-to-end example of cloning a hover animation
  • The one design decision that makes it different from screen-recording tools
  • Where it breaks down and who should skip it

You have seen a button that lifts on hover with a springy overshoot, or a card that slides in with a staggered delay. You want that motion in your own project. Your options today: eyeball it, screen-record it, guess the cubic-bezier, and iterate for an hour. NiazMorshed2007/reanimate is a Claude Code skill that tries to collapse that hour into a conversation. It captures an animation frame by frame, derives the motion, generates code, then plays the original and the copy side by side to prove they move the same. At 1,400 stars and written in JavaScript, it is young but already opinionated about how the job should be done.

What exactly does Reanimate do?

Reanimate is not a library you import. It is a skill — a packaged instruction set plus scripts that Claude Code loads when you ask for it. You point it at a URL or a screen region where an animation is running. It uses Playwright, the browser automation tool listed in its repo topics, to step through the animation and capture frames. From those frames it infers what changed: position, scale, opacity, rotation, easing curves, delays. Then it writes frontend code that reproduces the motion and runs a comparison pass so you can see whether the copy matches the original.

The key phrase in the repo description is "proves the copy moves the same." That is the part I find genuinely interesting. Most motion-cloning tools stop at generation and leave verification to your eyes. Reanimate treats the clone as a hypothesis and the frame comparison as the test. That is a small but meaningful shift in how you work: you are not asking the agent to be right, you are asking it to show its work.

Reanimate: A Claude Code Skill That Copies Any Animation

How do you install and use it in Claude Code?

Skills in Claude Code live in a skills directory that the agent scans. The general pattern is to clone the repo into your skills folder and let Claude Code pick it up. The exact path depends on your setup, so check the repo's README for the current instructions before you copy commands blindly. A typical flow looks like this:

# clone the skill into your Claude Code skills directory
git clone https://github.com/NiazMorshed2007/reanimate.git ~/.claude/skills/reanimate

# then, inside Claude Code, ask for it by name
> use the reanimate skill to clone the hover animation on this page: http://localhost:3000/pricing

Because the skill relies on Playwright, you will need a working Playwright install and browser binaries. That is the biggest setup tax. If you already do browser testing or scraping, you probably have it. If you do not, budget a few minutes for npx playwright install and the dependencies it pulls.

Once running, the interaction is conversational. You describe the target — a selector, a URL, a region — and the skill captures and analyzes. You get back generated code plus a verification artifact. If you have used Taste-skill Gives Coding Agents an Eye for Design, the workflow will feel familiar: a skill that gives the agent a specific sensory capability rather than general coding ability.

A small example: cloning a hover lift

Say you have a pricing card with a hover effect you like. It lifts 8 pixels, scales to 1.02, and settles with a slight overshoot over roughly 300 milliseconds. You point Reanimate at the card. It captures the hover state transition, measures the displacement and timing, and proposes something like a transform with a spring-like easing. The generated code might look like:

.pricing-card {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
}

The interesting part is what comes next. The skill replays both the original and the generated version and compares frames. If the overshoot is too aggressive or the settle is too slow, you see it in the comparison rather than discovering it three days later in a code review. You can then ask for adjustments in plain language: "less overshoot, faster settle." That loop — describe, generate, verify, adjust — is where the skill earns its keep.

What makes it different, and where does it fall short?

The differentiator is the verification step. Tools that record and replay motion exist; tools that generate motion code from observation exist; tools that do both and then check the result against the source are rare. Reanimate's bet is that the proof is the product. That is a bet I would make too, because motion is one of those things where "looks close" and "is correct" diverge constantly.

The limitations are real, though. First, it is new. The repo is young, the star count is modest, and the skill ecosystem around Claude Code is still forming. Expect rough edges in installation and in the range of animations it handles well. Second, frame-based inference is easier for discrete, self-contained animations — hover states, entrance transitions, loading spinners — than for scroll-linked or physics-driven motion that depends on continuous input. Third, Playwright capture adds latency and environment sensitivity; headless browser quirks can produce frames that do not match what a real user sees. Fourth, generated code quality depends heavily on the model behind Claude Code, so your mileage will vary with the animation's complexity.

My read: this is a tool for frontend developers who care about motion fidelity and already live in Claude Code. If you are building a design system and need to port interactions from a reference site, Reanimate is worth an afternoon. If you need production-grade animation tooling with support contracts, wait. And if you are the kind of person who enjoys the skill ecosystem, pair it with Unslop: A Claude Skill That Fixes AI-Looking UI — one skill to make the motion right, another to make the interface not look generated.

For teams running multiple agents, the verification pattern Reanimate uses is worth stealing even if you never install it. Ask your agent to prove its output matches a reference, not just produce output. That habit shows up in tools like Vestige: A Safety Kernel That Makes AI Agents Show Their Work, and it is the direction serious agent tooling is heading. Reanimate applies it to pixels and timing. That is a narrow slice of the problem, but a slice where proof matters more than prose.

Source and attribution

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

Discussion

Add a comment

0/5000
Loading comments...