NiazMorshed2007/reanimate
SKILL FOR CLONING ANIMATIONS VIA CLAUDE CODE
Claude Code skill for reverse-engineering animations: records the original, rebuilds code, verifies pixel-by-pixel, and iterates until match.
// KEY FEATURES
- Records animations from sites, video, GIF, and Lottie via Playwright
- Reconstructs spec: timing, easing, stagger, GPU calls
- Generates code in CSS, Framer Motion, GSAP, or three.js
- Iteratively verifies copy against original up to 5 rounds
// DEEP DIVE: HOW IT WORKS
The tool installs as a skill in Claude Code via npx skills add. On run, it captures the reference — a live page, video file, or GIF — in headless Chromium with fixed viewport and frame rate, collecting CSS properties, Web Animations API data, and for canvas/WebGL, shaders and draw calls per frame. A spec table is then built: one row per element and property with from/to, duration, easing, and stagger. The agent then writes the implementation using the project's stack (CSS, Framer Motion, GSAP, three.js), re-records the result with the same settings, and compares timing, easing, and pixels, producing side-by-side sheets. The loop repeats 2–5 times, fixing the largest discrepancy each round; anything still unmatched after 5 iterations is listed in the report with a reason. Requires Bun 1.1+, macOS or Linux (Windows untested), first run downloads ~250 MB (ffmpeg + Chromium). No API keys needed.
// USE CASES
Best for: Frontend developers copying complex motion effects from references
- Clone a hero animation from another landing page into your component
- Reproduce a card hover effect from a GIF with easing accuracy
- Port a WebGL scene (three.js) from a reference preserving GPU logic
// QUICK START
npx skills add NiazMorshed2007/reanimate -g
/reanimate the hero entrance on https://example.com, into components/Hero.tsx
/reanimate this loader, 0:03 to 0:05 of ~/Downloads/loader.mov
/reanimate the card hover in this gif, match it exactlyCommands are taken from the repository README — check the current version on GitHub before running.
New repositories every 30 minutes
REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.
Join on Telegram