Word Rotate

Motion

Rotates words inside a sentence: the old word lifts and blurs away as the next rises in. The slot keeps the widest word's width so the line never jumps.

src/registry/premium/word-rotate.tsx/r/word-rotate.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/word-rotate.json

Usage#

tsx
import { WordRotate } from "@/components/ui/word-rotate"

export function Example() {
  return <WordRotate />
}

API reference#

WordRotate props
PropTypeDefault
wordsstring[]["startups", "agencies", "fintech", "...
intervalnumber2200
classNamestring-
prefixReact.ReactNode"Interfaces for"

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components