Animated React components you copy and paste, built on the View Transition API and React's <ViewTransition>. No animation library, just React 19.3+ and a little CSS.
- Once: copy
morph.cssnext to yourglobals.cssand import it after Tailwind. Every component is built from itsvt-*classes, and yours can use them too.
@import "tailwindcss";
@import "./morph.css";- Copy the component's
.tsxfrom its docs page intocomponents/.
Needs React 19.3+ and Tailwind CSS v4.
npm install
npm run devThe site is a static export (output: "export"), served from out/ by Cloudflare Workers static assets (wrangler.jsonc). In the Cloudflare dashboard, import the repository and set:
- Build command:
npm run build - Deploy command:
npx wrangler deploy
The site's URL, used for canonical links, OG images and the sitemap, is NEXT_PUBLIC_SITE_URL in .env.production.
src/registry/— the components, one.tsxfile each, written with plain elements and Tailwind classes.src/registry/morph.css— the one CSS file: a small set ofvt-*classes every component composes, with settings you can override on:root.src/components/docs/examples/— one runnable demo per component, shown under Usage.src/app/— Next.js routes. Every component page is pre-rendered at build time.src/components/docs/— the docs site, built with shadcn/ui.
See AGENTS.md for conventions.
