Blur Text

BlurText reveals a line of text segment by segment, with each word or character fading in from a blur while drifting up or down into place. It respects prefers-reduced-motion by rendering the final text immediately.

Blur Text
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @motiq/blur-text

Requires @motiq in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { BlurText } from "@/components/motiq/blur-text";export function Hero() {  return (    <BlurText as="h1" className="text-5xl font-bold" text="Build faster interfaces" />  );}
  • Animating a hero headline or section title on first scroll into view
  • Adding a subtle, staggered text entrance to landing page copy
  • Revealing short taglines where a per-word or per-character cadence adds emphasis
  • Avoid for long body paragraphs, since per-segment animation adds many motion elements

Examples

Hero headline, word by word

Default behavior: words reveal from the top with a 60ms stagger, animating once when the headline enters the viewport.

hero-headline,-word-by-word.tsx
import { BlurText } from "@/components/motiq/blur-text";export function HeroHeadline() {  return (    <BlurText      as="h1"      className="text-4xl font-semibold tracking-tight md:text-6xl"      text="Motion that feels intentional"    />  );}

Character-by-character title from below

Splits by characters and drifts upward from below with a shorter stagger for a tighter reveal.

character-by-character-title-from-below.tsx
import { BlurText } from "@/components/motiq/blur-text";export function BrandTitle() {  return (    <BlurText      as="h2"      animateBy="chars"      delay={30}      direction="bottom"      className="text-3xl font-bold"      text="Motiq"    />  );}

Replaying subtitle paragraph

Uses once={false} so the reveal replays each time the paragraph re-enters the viewport.

replaying-subtitle-paragraph.tsx
import { BlurText } from "@/components/motiq/blur-text";export function Subtitle() {  return (    <BlurText      as="p"      once={false}      className="max-w-xl text-lg text-muted-foreground"      text="Copy-paste components with motion built in."    />  );}

API reference

PropTypeDefaultDescription
textstring—The text to reveal. Required.
classNamestring—Class names applied to the wrapper element, merged via cn().
delaynumber60Milliseconds of stagger between each segment.
animateBy"words" | "chars""words"Reveal word-by-word or character-by-character.
direction"top" | "bottom""top"Which side each segment drifts in from (top starts 14px above, bottom starts 14px below).
oncebooleantrueAnimate only the first time the text enters the viewport.
asReact.ElementType"span"Element tag to render for the wrapper (e.g. "h1", "p").

Accessibility

  • The full string is exposed once on the wrapper via aria-label, so screen readers announce the complete text.
  • Animated segment spans are marked aria-hidden="true" to prevent fragmented reading.
  • Under prefers-reduced-motion (via useReducedMotion), segments render in their final state with no blur, opacity, or position animation.
  • Because the wrapper is a semantic element chosen via the as prop, pick a heading or paragraph tag that matches the document structure.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Blur Text" component (motiq/blur-text) from its shadcn registry.1. Install it with: npx shadcn@latest add @motiq/blur-text2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: text, className, delay, animateBy, direction, once, as.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { BlurText } from "@/components/motiq/blur-text";export function Hero() {  return (    <BlurText as="h1" className="text-5xl font-bold" text="Build faster interfaces" />  );}```

Files & dependencies

  • registry/text/blur-text.tsx→ components/motiq/blur-text.tsx
dependenciesmotion
registryDependencieshttps://motiq.dev/r/utils.json

Looks similar, elsewhere