All resources

ReanimateCurated · external open-source project

Rebuild an animation you like in code, frame by frame

Give Claude Code a reference — a web page, a video or a GIF. Reanimate films it, rebuilds it in your project, then compares both frame by frame and fixes the gaps until they match.

  • Free
  • Claude Code · Codex
  • Checked

Start the guide Official repository ↗

See the result

Our test of 25 Nov 2026 on a title animation we made: reference on the left, rebuild in the middle, difference (×3) on the right. Final gap: 0.49 % of pixels and +33 ms, after five rounds.

What you need

Free

  • The skill (MIT licence)
  • Bun, FFmpeg and Chromium
  • No API key required

May cost money

  • Claude Code needs a paid Claude plan or API credits
  • Each rebuild uses your quota: 130,000 to 330,000 tokens per animation in our tests

Install

  1. Install the skill

    Official command (skills.sh CLI). It asks which agents to set up; add -a claude-code to skip the question.

    Command
    npx skills add NiazMorshed2007/reanimate -g
  2. Check that Claude sees it

    Open Claude Code in your project and type /reanimate: the command should appear in the list.

Step by step

  1. Pick a short animation

    Two to five seconds is enough: a title entrance, a button, a transition. In our tests a rebuild took 6 to 55 minutes.

  2. Tell Claude what to rebuild, and where

    Name the reference (a URL, or a video with a time range) and the file that should receive the code.

    Prompt to copy
    /reanimate l’animation d’entrée du titre sur http://localhost:3000, dans components/Hero.tsx
  3. Choose how faithful it should be

    By default it copies the motion (order, easing, timing within 80 ms) and leaves the look to you. Say “match it exactly” to also match fonts, colours and spacing (at most 2 % of pixels different).

  4. Let it compare and fix

    It films your copy the same way as the reference, compares them frame by frame and fixes the biggest gap, usually in 2 to 5 rounds. Whatever still differs after 5 rounds is listed in its report, with the reason.

  5. Check the sheets yourself

    Side-by-side sheets are saved in .reanimate/<name>/ in your project. The numbers tell you something is off; the images tell you what.

Examples

  • Your own video becomes a component

    Test T1: a title animation exported as video, rebuilt as a Remotion component. 0.49 % gap after five rounds, 34 minutes.

  • A video transition

    Test T2: a transition rebuilt in HyperFrames. 0.29 % gap, 22 minutes.

  • Regression check before delivery

    Compare two renders of the same video frame by frame before sending a new version: a few minutes, no tokens.

Common issues and fixes

Windows: “bun” is not found, or the scripts fail

Windows is not officially supported. We needed four fixes (Node instead of Bun, the system FFmpeg, an FFmpeg 9 option). If you are not comfortable with that, use macOS or Linux.

A page behind a login, YouTube or Loom cannot be filmed

Make a screen recording and give Claude the file instead.

The comparison looks perfect but the timing is off

compare.ts lines the two videos up automatically, which can hide a global delay. For a strict check, add --offset 0.

Command
bun <skill>/scripts/compare.ts --ref ref/frames --clone clone-1/frames --out compare-1 --offset 0
“Unable to capture screenshot” when building sheets

Chromium fails above about 15 frames per sheet: ask for --per-sheet 12.

Captures are very slow

The default software renderer is slow but gives the same pixels everywhere: about 35 s for 2 s of video on our PC. Do not run more than three captures at once.

Before you start

Keep going

Technical sheet

Author
Niaz Morshed
Type
Motion design · Skill
Cost
Free
Licence
MIT
Works with
Claude Code, Codex
Added
Last checked