R_REDDYX.XYZ
AgentsJavaScript★ 1,662⑂ 141 forksMIT

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 exactly

Commands are taken from the repository README — check the current version on GitHub before running.

#agent-skills#animation#claude-code#claude-skills#frontend#motion#playwright
Open on GitHub →

New repositories every 30 minutes

REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.

Join on Telegram
← Full catalog·Full index

// SIMILAR REPOSITORIES

OFFLINE AI ASSISTANT FOR SURVIVAL★ 1650ON-DEMAND COMPUTERS FOR CODING AGENTS★ 1544RPENT: EMBODIED AGENTS FRAMEWORK★ 1785AI LIVESTREAM HOST ON A SINGLE SERVER★ 1841LLM ENGINE TURNING DOCUMENTS INTO STRUCTURED WIKI★ 2004PROACTIVE AI AGENT TEMPLATE★ 2066

← FULL CATALOG

NiazMorshed2007/reanimate — Skill For Cloning Animations Via…