Loading preview
Blur Text
Text animationsText whose words rise out of a blur one after another.
Cycles through words with a vertical slide, pausing on hover.
npx shadcn@latest add @venusui/rotating-wordsRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/rotating-words.tsxThe code behind the preview above.
rotating-words-demo.tsx
import { RotatingWords } from "@/components/ui/rotating-words"
export default function RotatingWordsDemo() {
return (
<p className="text-center text-3xl font-semibold tracking-tight">
Made for <RotatingWords words={["founders", "designers", "engineers", "agencies"]} className="text-muted-foreground" />
</p>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| words | string[] | — | Words to cycle through. Required. |
| interval | number | 2500 | Milliseconds each word stays visible. |
| className | string | — | Classes for the wrapper, e.g. a color. |
Only the props above.
motion package. The CLI installs it.<h1>Made for <RotatingWords words={…} /></h1>.aria-hidden.inline-flex aligned to the text bottom. If your font sits differently, adjust align-bottom on the wrapper.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Text whose words rise out of a blur one after another.
Text filled with a slowly moving gradient: a subtle sheen by default, or your own colors.
Counts up to a number when it scrolls into view, with locale-aware formatting.