Headlines that rise letter by letter, slide up line by line, blur into focus or light up as you scroll.
Words come into focus one after another, sharpening from a soft blur as the text scrolls into view.
Customize
Usage
import { BlurReveal } from "@/components/motionkit/blur-reveal";
<BlurReveal
as="h1"
text="Interfaces that feel considered, down to the last frame."
className="text-5xl font-semibold tracking-tight"
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Word sharpens
Scrolls into view
Hero headlines, section intros, manifestos and quotes on premium landing pages.
The text is split into words, each an inline element with its own variant. When the heading scrolls into view, the parent's staggerChildren starts each word a fraction of a second after the last, animating blur, opacity and a small rise together with a strong ease-out. A hidden copy of the sentence is what screen readers read.
Works in the App Router as is. Requires Tailwind CSS v4.
One command adds the file and installs its dependencies. Needs a components.json (run npx shadcn@latest init once if you don't have one).
npx shadcn@latest add https://www.motionkitui.com/r/blur-reveal.jsonnpm install motionSave as components/motionkit/blur-reveal.tsx.
"use client";
import { motion, useReducedMotion } from "motion/react";
type BlurRevealProps = {
text?: string;
/** The element to render, for the right heading level. */
as?: "h1" | "h2" | "h3" | "p" | "span";
/** Seconds between one word and the next. */
stagger?: number;
/** Seconds each word takes to come into focus. */
duration?: number;
/** How blurred words start, in pixels. */
blur?: number;
/** Start when scrolled into view, or straight away. */
trigger?: "view" | "mount";
className?: string;
};
/**
* Text that comes into focus a word at a time: each word starts soft, faint and slightly low, then sharpens into
* place just after the one before. Plays once as it scrolls into view. Screen readers get the sentence whole, and
* with reduced motion the words simply fade in.
*/
export function BlurReveal({ text = "Interfaces that feel considered, down to the last frame.", as = "h2", stagger = 0.06, duration = 0.7, blur = 12, trigger = "view", className = "" }: BlurRevealProps) {
const reduceMotion = useReducedMotion();
const Tag = motion[as];
const words = text.split(" ");
const hidden = reduceMotion ? { opacity: 0 } : { opacity: 0, filter: `blur(${blur}px)`, y: "0.25em" };
const shown = reduceMotion ? { opacity: 1 } : { opacity: 1, filter: "blur(0px)", y: "0em" };
return (
<Tag
className={className}
initial="hidden"
{...(trigger === "view" ? { whileInView: "shown", viewport: { once: true, amount: 0.6 } } : { animate: "shown" })}
transition={{ staggerChildren: stagger }}
>
<span className="sr-only">{text}</span>
<span aria-hidden>
{words.map((word, index) => (
<span key={index}>
<motion.span
className="inline-block will-change-[filter,transform]"
variants={{ hidden, shown }}
transition={{ duration: reduceMotion ? 0.3 : duration, ease: [0.16, 1, 0.3, 1] }}
>
{word}
</motion.span>
{index < words.length - 1 && " "}
</span>
))}
</span>
</Tag>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | The text to reveal. |
| as | "h1" | "h2" | "h3" | "p" | "span" | "h2" | The element to render. |
| stagger | number | 0.06 | Seconds between words. |
| duration | number | 0.7 | Seconds each word takes to sharpen. |
| blur | number | 12 | Starting blur in pixels. |
| trigger | "view" | "mount" | "view" | Start when scrolled into view, or straight away. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes. Run npx shadcn@latest add https://www.motionkitui.com/r/blur-reveal.json in any project with a components.json. It saves the file to components/motionkit and installs its dependencies.
With reduced motion on, words fade in without blur or movement.
Headlines that rise letter by letter, slide up line by line, blur into focus or light up as you scroll.
Words lift out of a blur one after another as the line scrolls into view.
Headlines that arrive word by word or letter by letter: slide, blur, hinge or rise from behind a mask, from any direction.