Back to HomeYou are on Docs.

The short version

Keep your components. Move the layer underneath.

PrequelUI Animate is a motion layer for the primitives you already use. No rewrite: your markup, styles and API stay put.

Built on Motion and the primitives you already have.
01

Why primitives

shadcn/ui components change often and come in many styles and bases. PrequelUI does not copy them: each animated primitive has exactly the API of its library, with motion inside. Whatever your configuration, swapping the import is enough.

before-after.tsx
- import { Dialog } from "@/components/ui/dialog";
+ import { Dialog } from "@/components/prequelui/dialog";
npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/accordion.json
npmthe default on every machine
02

Motion that feels right

Springs and short tweens on a strong ease-out. Exits are quicker than entrances, and every animation can be interrupted without a jump.

Pressspring 550 / 30 — scale 0.97
Surfacespring 300 / 30
Entrance220–350 ms ease-out
Exit130–200 ms, always shorter
03

Change the pace

One provider controls the whole app. A tempo above 1 slows everything down; below 1 it speeds everything up. Durations, delays and stagger scale; state values never do.

providers.tsx
import { PrequelMotionProvider } from "@/components/prequelui/motion";

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <PrequelMotionProvider tempo={1}>
      {children}
    </PrequelMotionProvider>
  );
}
04

Libraries

The React implementation works with the libraries below. The 31 Base UI primitives also ship for Vue, Svelte, Solid and JavaScript. Every animated family ships in all five frameworks, and each component card and page says where it runs.

React92/92
Vue92/92
Svelte92/92
Solid92/92
JavaScript92/92
Radix UI
shadcn/ui
Base UI
Motion
React
Vue

Looking for a complete example? The AI Chat recipe in Components assembles a streaming assistant from these primitives.

Built by Vidhal. The source is available on GitHub.

MIT licensed