Typography
CreativeBlur Text
Each word (or letter) starts blurred and slightly low and sharpens into place. For headlines that should land softly.
Install
Included with Creative: needs your API key. Initialize and log in once.
npx @galactrex/ui add blur-textUsage
import { BlurText } from "@/components/galactrex/blur-text";
<BlurText as="h1" text="Quiet tools for loud ideas." />Source
Installs to components/galactrex/blur-text.tsx, with the shared motion primitives beside it.
Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | The text. |
as | ElementType | "p" | Element. |
by | "word" | "char" | "word" | Pieces. |
trigger | "mount" | "inView" | "hover" | "manual" | "inView" | When it plays. |
active | boolean | — | Plays when true, for trigger="manual". |
stagger | number | 0.06 | Seconds between pieces. |
blur | number | 10 | Starting blur in px. |
className | string | — | Extra classes for the outer element. |
Variants
- Headline. By word, on arrival.
- Whisper. By letter with a small blur.
Accessibility
- Real text read once; pieces are aria-hidden.
Motion and reduced motion
- Opacity, filter and transform per piece.
- Reduced motion: shown at once.