Skip to content
VenusUI
Get started

Blur Text

Text whose words rise out of a blur one after another.

Preview

Installation

npx shadcn@latest add @venusui/blur-text

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/blur-text.tsx

Usage

The code behind the preview above.

blur-text-demo.tsx

import { BlurText } from "@/components/ui/blur-text"

export default function BlurTextDemo() {
  return (
    <BlurText
      as="h2"
      text="Every word arrives in its own moment"
      className="max-w-lg text-center text-3xl font-semibold tracking-tight text-balance sm:text-4xl"
    />
  )
}

API reference

PropTypeDefaultDescription
textstring—The text to reveal. Required.
as"h1" | "h2" | "h3" | "p" | "span""p"Element to render.
delaynumber0Milliseconds before the first word.
staggernumber90Milliseconds between words.

Only the props above, plus className.

Requirements

  • Tailwind CSS v4. The CLI adds the blur-in keyframes. Works in Server Components and without JavaScript.

Customization

  • Chain several with delay so a paragraph starts after the heading.

Accessibility

  • The text stays plain text for screen readers and search engines.
  • With reduced motion the words appear at once.

Troubleshooting

It only plays once.
It plays on load, by design. Change the key to replay it.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (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 found
Run npx shadcn@latest init in your project first.
Loading preview

Gradient Text

Text animations

Text filled with a slowly moving gradient: a subtle sheen by default, or your own colors.

Loading preview

Number Ticker

Text animations

Counts up to a number when it scrolls into view, with locale-aware formatting.

Loading preview

Rotating Words

Text animations

Cycles through words with a vertical slide, pausing on hover.