Blur-In Text Animation for React
A blur text animation for React where words sharpen out of a soft blur one after another: the classic hero-headline reveal.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/text-effects.jsonHero headline
Render it as any element with render (here paragraphs styled as a headline; use render={<h1 />} for the page's real heading). It plays once, when it scrolls into view.
Interfaces you can see through.
Glass components with motion that stays readable, accessible and fast.
import { BlurIn } from "@/components/sheenui/text-effects/blur-in";
// Package build (after the first npm release, or a packed tarball): import { BlurIn } from "@sheenui/theme";
export function Example() {
return (
<div className="flex max-w-2xl flex-col items-center gap-4 text-center">
<BlurIn
render={<p />}
text="Interfaces you can see through."
className="text-4xl leading-[1.08] font-semibold tracking-tight text-balance sm:text-5xl"
/>
<BlurIn
render={<p />}
text="Glass components with motion that stays readable, accessible and fast."
delay={0.45}
stagger={0.03}
blur={6}
className="max-w-lg text-base text-pretty text-sheen-fg-muted sm:text-lg"
/>
</div>
);
}Files to copy
5 folders · 7 files · 4 packages
- From
theme/src/ components/text-effects/{blur-in.tsx, text-utils.ts}hooks/{use-media-query.ts, use-preferences.ts}motion/{gate.ts, tokens.ts}lib/cn.tsstyles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/text-effects.jsonRegistry item: text-effects. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Character by character
by="character" reveals each letter (emoji and accents stay whole). Words never break apart mid-line. It is also the mode for languages written without spaces.
Ship it ✨
こんにちは、世界
import { BlurIn } from "@/components/sheenui/text-effects/blur-in";
// Package build (after the first npm release, or a packed tarball): import { BlurIn } from "@sheenui/theme";
export function Example() {
return (
<div className="flex flex-col items-center gap-3 text-center">
<BlurIn
by="character"
render={<p />}
text="Ship it ✨"
blur={12}
offset="0.5em"
className="text-5xl font-bold tracking-tight sm:text-6xl"
/>
<BlurIn
by="character"
render={<p />}
text="こんにちは、世界"
delay={0.5}
stagger={0.05}
lang="ja"
className="text-xl font-medium text-sheen-fg-muted"
/>
</div>
);
}Props
Keyboard
Accessibility
- The text is in the DOM from the start, so screen readers and search engines read it once, whether or not it has animated.
- Under reduced motion it is plain static text, with nothing to wait for.
When to use the blur in effect
- Use it as a text reveal animation on the one hero headline of a landing page, where each word sharpens out of a soft blur as it rises into place and gives the page a deliberate first impression.
- Use it for an empty-state or onboarding welcome line, such as a first-run greeting in a dashboard, where one short sentence should arrive with a little ceremony instead of simply appearing.
- Switch to by="character" for a short tagline or for languages written without spaces, each word stays one unbreakable box, so letters never wrap on their own.
- Skip it when the text is body copy, a list or anything people scan quickly; animated paragraphs slow reading, so keep plain text there or use Typewriter for a phrase that changes over time.
- Pair it with ShimmerText for a subtitle that lights up after the headline lands, a Button for the call to action, and the useSheenReducedMotion hook if you gate other motion yourself.
Frequently asked questions
Related pages
Guides that cover it
19 effects pages in all: browse them on All effects.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .