A Claude Code skill that reverse-engineers any animation frame by frame, then proves the copy moves the same.
Add the showcase site under site/
NiazMorshed2007c441ff00651e
diff --cc site/.env.productionindex 0000000,f41c21d..f41c21dmode 000000,100644..100644--- a/site/.env.production+++ b/site/.env.productiondiff --cc site/.gitignoreindex 0000000,0000000..9fd2713new file mode 100644--- /dev/null+++ b/site/.gitignore@@@ -1,0 -1,0 +1,48 @@@++# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++++# dependencies++/node_modules++/.pnp++.pnp.*++.yarn/*++!.yarn/patches++!.yarn/plugins++!.yarn/releases++!.yarn/versions++++# testing++/coverage++++# next.js++/.next/++/out/++++# production++/build++++# misc++.DS_Store++*.pem++++# debug++npm-debug.log*++yarn-debug.log*++yarn-error.log*++.pnpm-debug.log*++++# env files (can opt-in for committing if needed)++.env*++++# vercel++.vercel++++# typescript++*.tsbuildinfo++next-env.d.ts++!.env.production++++# vendored at build by scripts/vendor-examples.mjs++/public/examples/*/vendor/++++# wrangler++.wrangler/diff --cc site/AGENTS.mdindex 0000000,af3b7c8..af3b7c8mode 000000,100644..100644--- a/site/AGENTS.md+++ b/site/AGENTS.mddiff --cc site/README.mdindex 0000000,0000000..a058ff9new file mode 100644--- /dev/null+++ b/site/README.md@@@ -1,0 -1,0 +1,49 @@@++# motion-clone site++++The website for [motion-clone](https://github.com/NiazMorshed2007/motion-clone), a Claude Code skill that clones animations frame by frame. Next.js 16, exported as static files and served by a Cloudflare Worker (static assets only, no server code).++++## Develop++++```sh++bun install++bun run dev # http://localhost:3000++```++++`predev` and `prebuild` copy three.js and the Inter font from `node_modules` into `public/examples/stripe-bento/vendor/` (git-ignored), because the live examples are plain HTML pages loaded in iframes.++++## Build and preview like production++++```sh++bun run preview # next build, then wrangler dev on http://localhost:8787++```++++## Deploy to Cloudflare Workers++++Set the public URL first, so the Open Graph and canonical links are absolute:++++```sh++# .env.production++SITE_URL=https://motion-clone.<your-subdomain>.workers.dev++```++++Then either:++++- **From this machine:** `npx wrangler login` once (or export `CLOUDFLARE_API_TOKEN` with the "Edit Cloudflare Workers" template), then `bun run deploy`.++- **On every push:** in the Cloudflare dashboard, Workers & Pages → Create → Import a repository → this repo. Build command `bun run build`, deploy command `npx wrangler deploy`. Add `SITE_URL` as a build variable.++++`wrangler.jsonc` names the Worker `motion-clone` and serves `./out`, with `404.html` for unknown paths.++++## Layout++++| Path | What it is |++|---|---|++| `src/app/page.tsx` | The whole page: copy, sections, tables. |++| `src/components/` | `LiveExample` (scaled or cropped iframe of a live clone), `CompareVideo` (drag to compare stripe.com and the clone), `Nav`, `Sidenote`, `CopyCommand`. |++| `public/examples/stripe-bento/` | The three cloned stripe.com cards as a standalone page; `?card=agentic-commerce\|issuing\|crypto` shows one. |++| `public/media/` | Comparison recordings (stripe.com and clone, same capture command) and the comparison sheet. |++| `public/og.png` | Social preview image. |++| `marketing/launch.md` | Launch post drafts. |++++## About the examples++++The live examples recreate three cards from stripe.com as a study of the technique. They use Inter instead of Stripe's licensed Söhne, but the widget code ports Stripe's shaders and uses Stripe's images. Not affiliated with or endorsed by Stripe.diff --cc site/bun.lockindex 0000000,6aaac8d..6aaac8dmode 000000,100644..100644--- a/site/bun.lock+++ b/site/bun.lockdiff --cc site/eslint.config.mjsindex 0000000,05e726d..05e726dmode 000000,100644..100644--- a/site/eslint.config.mjs+++ b/site/eslint.config.mjsdiff --cc site/marketing/launch.mdindex 0000000,e46b6d6..e46b6d6mode 000000,100644..100644--- a/site/marketing/launch.md+++ b/site/marketing/launch.mddiff --cc site/next.config.tsindex 0000000,fa5a40d..fa5a40dmode 000000,100644..100644--- a/site/next.config.ts+++ b/site/next.config.tsdiff --cc site/package.jsonindex 0000000,640a52f..640a52fmode 000000,100644..100644--- a/site/package.json+++ b/site/package.jsondiff --cc site/public/examples/stripe-bento/assets/img/agentic-particles.webpindex 0000000,8ec50d4..8ec50d4mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/hoodie-navy-160.webpindex 0000000,fa67905..fa67905mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/hoodie-navy-320.webpindex 0000000,9963a55..9963a55mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/hoodie-navy.pngindex 0000000,ddbc887..ddbc887mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/issuing-card-placeholder.webpindex 0000000,813307c..813307cmode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/issuing-palette.webpindex 0000000,a55f440..a55f440mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/issuing_card_bg.pngindex 0000000,4293c5a..4293c5amode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/issuing_card_bg.webpindex 0000000,002bc90..002bc90mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/issuing_card_fg.pngindex 0000000,a6d8950..a6d8950mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/issuing_card_fg.webpindex 0000000,4537d35..4537d35mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/map-dots.pngindex 0000000,aaa0f17..aaa0f17mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/money-movement-fallback_2x.pngindex 0000000,ba971e5..ba971e5mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/point_spritesheet.pngindex 0000000,bb4e719..bb4e719mode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/point_spritesheet.webpindex 0000000,0f89f3d..0f89f3dmode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/shirt-blue-160.webpindex 0000000,c976c0f..c976c0fmode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/shirt-blue-320.webpindex 0000000,3cf9cbc..3cf9cbcmode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/assets/img/shirt-blue.pngindex 0000000,a325a8e..a325a8emode 000000,100644..100644Binary files differdiff --cc site/public/examples/stripe-bento/index.htmlindex 0000000,282a518..282a518mode 000000,100644..100644--- a/site/public/examples/stripe-bento/index.html+++ b/site/public/examples/stripe-bento/index.htmldiff --cc site/public/examples/stripe-bento/src/bento.cssindex 0000000,98db306..98db306mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/bento.css+++ b/site/public/examples/stripe-bento/src/bento.cssdiff --cc site/public/examples/stripe-bento/src/bento.jsindex 0000000,67356f5..67356f5mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/bento.js+++ b/site/public/examples/stripe-bento/src/bento.jsdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce.cssindex 0000000,b06127a..b06127amode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce.css+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce.cssdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce.jsindex 0000000,b7cf3e3..b7cf3e3mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce.js+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce.jsdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce/chat.jsindex 0000000,5a651b9..5a651b9mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce/chat.js+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce/chat.jsdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce/particles.jsindex 0000000,8d36605..8d36605mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce/particles.js+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce/particles.jsdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce/render-loop.jsindex 0000000,360a51a..360a51amode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce/render-loop.js+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce/render-loop.jsdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce/shaders.jsindex 0000000,44a1a15..44a1a15mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce/shaders.js+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce/shaders.jsdiff --cc site/public/examples/stripe-bento/src/widgets/agentic-commerce/webgl-support.jsindex 0000000,39f3e12..39f3e12mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/agentic-commerce/webgl-support.js+++ b/site/public/examples/stripe-bento/src/widgets/agentic-commerce/webgl-support.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto.cssindex 0000000,010cf7c..010cf7cmode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto.css+++ b/site/public/examples/stripe-bento/src/widgets/crypto.cssdiff --cc site/public/examples/stripe-bento/src/widgets/crypto.jsindex 0000000,c1d7480..c1d7480mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/cities.jsindex 0000000,3a6af11..3a6af11mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/cities.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/cities.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/dots-precompute.jsindex 0000000,5a24c70..5a24c70mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/dots-precompute.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/dots-precompute.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/dots-worker.jsindex 0000000,c7a6de3..c7a6de3mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/dots-worker.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/dots-worker.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/dots.jsindex 0000000,7f7ed26..7f7ed26mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/dots.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/dots.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/drag.jsindex 0000000,9535fb4..9535fb4mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/drag.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/drag.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/easing.jsindex 0000000,e63e429..e63e429mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/easing.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/easing.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/globe.jsindex 0000000,25f4334..25f4334mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/globe.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/globe.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/render-loop.jsindex 0000000,75f43e0..75f43e0mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/render-loop.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/render-loop.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/shaders.jsindex 0000000,17c1779..17c1779mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/shaders.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/shaders.jsdiff --cc site/public/examples/stripe-bento/src/widgets/crypto/wallets.jsindex 0000000,a38c68f..a38c68fmode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/crypto/wallets.js+++ b/site/public/examples/stripe-bento/src/widgets/crypto/wallets.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing.cssindex 0000000,c9757c2..c9757c2mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing.css+++ b/site/public/examples/stripe-bento/src/widgets/issuing.cssdiff --cc site/public/examples/stripe-bento/src/widgets/issuing.jsindex 0000000,f259c9c..f259c9cmode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/config.jsindex 0000000,646b354..646b354mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/config.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/config.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/graphic.jsindex 0000000,0b447b7..0b447b7mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/graphic.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/graphic.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/render-loop.jsindex 0000000,abca59b..abca59bmode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/render-loop.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/render-loop.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/shaders.jsindex 0000000,095bdf8..095bdf8mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/shaders.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/shaders.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/wave-geometry.jsindex 0000000,9163359..9163359mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/wave-geometry.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/wave-geometry.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/wave-geometry.worker.jsindex 0000000,2624cb7..2624cb7mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/wave-geometry.worker.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/wave-geometry.worker.jsdiff --cc site/public/examples/stripe-bento/src/widgets/issuing/wave.jsindex 0000000,7f09021..7f09021mode 000000,100644..100644--- a/site/public/examples/stripe-bento/src/widgets/issuing/wave.js+++ b/site/public/examples/stripe-bento/src/widgets/issuing/wave.jsdiff --cc site/public/media/entrance-clone.mp4index 0000000,7d25aa9..7d25aa9mode 000000,100644..100644Binary files differdiff --cc site/public/media/entrance-ref.mp4index 0000000,93ba985..93ba985mode 000000,100644..100644Binary files differdiff --cc site/public/media/hover-agentic-commerce-clone.mp4index 0000000,0e08d96..0e08d96mode 000000,100644..100644Binary files differdiff --cc site/public/media/hover-agentic-commerce-ref.mp4index 0000000,011c317..011c317mode 000000,100644..100644Binary files differdiff --cc site/public/media/hover-crypto-clone.mp4index 0000000,370777b..370777bmode 000000,100644..100644Binary files differdiff --cc site/public/media/hover-crypto-ref.mp4index 0000000,55a0b27..55a0b27mode 000000,100644..100644Binary files differdiff --cc site/public/media/hover-issuing-clone.mp4index 0000000,86e4e55..86e4e55mode 000000,100644..100644Binary files differdiff --cc site/public/media/hover-issuing-ref.mp4index 0000000,c6fa6ab..c6fa6abmode 000000,100644..100644Binary files differdiff --cc site/public/media/sheet-issuing-hover.webpindex 0000000,31cf0d5..31cf0d5mode 000000,100644..100644Binary files differdiff --cc site/public/og.pngindex 0000000,6215e73..6215e73mode 000000,100644..100644Binary files differdiff --cc site/scripts/vendor-examples.mjsindex 0000000,0896216..0896216mode 000000,100644..100644--- a/site/scripts/vendor-examples.mjs+++ b/site/scripts/vendor-examples.mjsdiff --cc site/src/app/globals.cssindex 0000000,4461c23..4461c23mode 000000,100644..100644--- a/site/src/app/globals.css+++ b/site/src/app/globals.cssdiff --cc site/src/app/icon.svgindex 0000000,a386181..a386181mode 000000,100644..100644--- a/site/src/app/icon.svg+++ b/site/src/app/icon.svgdiff --cc site/src/app/layout.tsxindex 0000000,a6db919..a6db919mode 000000,100644..100644--- a/site/src/app/layout.tsx+++ b/site/src/app/layout.tsxdiff --cc site/src/app/page.tsxindex 0000000,332a2b4..332a2b4mode 000000,100644..100644--- a/site/src/app/page.tsx+++ b/site/src/app/page.tsxdiff --cc site/src/components/CompareVideo.tsxindex 0000000,f544c8b..f544c8bmode 000000,100644..100644--- a/site/src/components/CompareVideo.tsx+++ b/site/src/components/CompareVideo.tsxdiff --cc site/src/components/CopyCommand.tsxindex 0000000,6605164..6605164mode 000000,100644..100644--- a/site/src/components/CopyCommand.tsx+++ b/site/src/components/CopyCommand.tsxdiff --cc site/src/components/LiveExample.tsxindex 0000000,3a047b8..3a047b8mode 000000,100644..100644--- a/site/src/components/LiveExample.tsx+++ b/site/src/components/LiveExample.tsxdiff --cc site/src/components/Nav.tsxindex 0000000,28056e8..28056e8mode 000000,100644..100644--- a/site/src/components/Nav.tsx+++ b/site/src/components/Nav.tsxdiff --cc site/src/components/Sidenote.tsxindex 0000000,76f92ea..76f92eamode 000000,100644..100644--- a/site/src/components/Sidenote.tsx+++ b/site/src/components/Sidenote.tsxdiff --cc site/tsconfig.jsonindex 0000000,cf9c65d..cf9c65dmode 000000,100644..100644--- a/site/tsconfig.json+++ b/site/tsconfig.jsondiff --cc site/wrangler.jsoncindex 0000000,97c2a17..97c2a17mode 000000,100644..100644--- a/site/wrangler.jsonc+++ b/site/wrangler.jsonc