MCP.so
登录

reanimate

NiazMorshed2007 / reanimate

基本信息

分类

设计与 UI

代码仓库

NiazMorshed2007 / reanimate

Skill

reanimate

关于 reanimate

A Claude Code skill that reverse-engineers an animation from a live site, screen recording, video, gif or Lottie file, rebuilds it in your code, then records the copy and compares it frame by frame until timing, easing and layout match.

#animation#frontend#motion#playwright#webgl

安装 reanimate

npx skills add NiazMorshed2007/reanimate -g

如何使用 reanimate

  1. 1

    安装 Bun 1.1 或更高版本(macOS 或 Linux;Windows 未测试)。

    curl -fsSL https://bun.sh/install | bash
  2. 2

    用 skills CLI 全局安装该技能,加上 -a claude-code 可跳过选择代理的步骤。

    npx skills add NiazMorshed2007/reanimate -g -a claude-code
  3. 3

    在 Claude Code 中说明要复刻什么、它在哪里、代码要放到哪里。

    /reanimate the hero entrance on https://example.com, into components/Hero.tsx
  4. 4

    如果参考是视频或 gif,给出文件和时间范围,例如:/reanimate this loader, 0:03 to 0:05 of ~/Downloads/loader.mov

  5. 5

    查看报告:每一轮的录制、规格说明以及参考/复刻/差异对比图都保存在项目的 .reanimate/<name>/ 中(除非想提交这些证据,否则把它加入 .gitignore)。

功能与用途

  • Records the reference in a headless browser at a fixed viewport and frame rate and writes a per-element motion spec

  • Builds the animation with your project's own stack: CSS, Framer Motion, GSAP or three.js

  • Films the clone the same way, compares timing, easing and pixels, and iterates (usually 2 to 5 rounds)

  • Traces WebGL, WebGPU and canvas 2D, with a seeded virtual clock for identical captures

要求与注意事项

  • 工作方式:在无头浏览器中以固定视口和帧率录制参考动画,写出规格(每个元素每个属性的开始时间、时长、起止值、缓动和错开),用项目已有的技术(CSS、Framer Motion、GSAP 或 three.js)实现,再用同样方式录制复刻版本并修正最大的差异,通常 2 到 5 轮。
  • 还原级别:默认只要求动作一致(触发方式、顺序、错开、时间误差 80 毫秒内、缓动类型、移动距离),外观由你决定。说“match it exactly”则要求像素级一致(字体、颜色、间距,平均像素差异不超过 2%);说“clone X and add Y”则把你的新增部分单独保留。
  • Canvas、WebGL 和 3D:加 --gl 会追踪 WebGL、WebGPU 和 canvas 2D,接入 three.js、Pixi、PlayCanvas、Babylon 和 OGL 的场景图;--clock virtual 使用带种子的虚拟时钟逐帧推进,让每次录制完全一致。
  • 要求与限制:首次运行会安装静态 ffmpeg 和 Playwright 的 Chromium(约 250 MB),不需要 API 密钥。需要登录的页面、YouTube 和 Loom 无法直接录制,需要提供屏幕录像。它在 Claude Code 上测试过,其他读取 SKILL.md 的代理也可以安装。
  • 许可与使用边界:MIT 许可。它复刻你指定的内容,但其他网站的字体、图片和代码仍归原作者所有,请确认你有权使用复制的内容。

参考来源

已于 2026-11-17 对照源仓库核实。

评论

设计与 UI分类下的其他 Skills