npx shadcn@latest add https://components.bksh.site/r/stop-motion.json

Hand Drawn

Stop Motion

Choppy, hand-animated stop-motion 'boil' for any content.

Stop Motion
Example.tsx
import { StopMotion } from "@/components/better/stop-motion"
export function Example() {
return (
<StopMotion
className="text-4xl font-semibold"
fps={8}
rotate={1.5}
shift={1}
steps={4}
>
Stop Motion
</StopMotion>
)
}

Dependencies

None — just React and Tailwind CSS.

Props

PropTypeDefaultDescription
children*ReactNode
classNamestring
fpsnumber8Frames per second — lower is choppier / more hand-made.
rotatenumber1.5Peak rotation at either end of the boil, in degrees.
shiftnumber1Peak positional wobble, in px.
stepsnumber4How many discrete frames the boil cycles through (2–8).