Focus Blur Resolve
A premium focus pull from heavy blur to crisp text. Whole-text entrance with blur, upward drift, and scale settle — ideal for hero headlines and section titles.
Installation
npx smoothui-cli add focus-blur-resolveFeatures
- Whole-text entrance that resolves from heavy blur (
14px) to sharp in a single smooth motion - Subtle upward drift (
y: 14) and scale settle (scale: 1.01 → 1) for a cinematic feel - Optional
delayprop to sequence multiple lines triggerOnViewmode usinguseInView— fires once the element enters the viewport- Full
prefers-reduced-motionsupport — renders instantly with no blur when motion is reduced
Usage
import FocusBlurResolve from "@repo/smoothui/components/focus-blur-resolve";
export default function Example() {
return (
<FocusBlurResolve className="font-bold text-5xl tracking-tight">
Clarity from chaos.
</FocusBlurResolve>
);
}Scroll-triggered
Use triggerOnView to play the animation only when the element scrolls into view:
<FocusBlurResolve triggerOnView className="text-3xl font-semibold">
Revealed on scroll.
</FocusBlurResolve>Sequenced lines
Use delay to stagger multiple text lines:
<FocusBlurResolve className="font-bold text-5xl">
Hero headline.
</FocusBlurResolve>
<FocusBlurResolve className="text-lg text-muted-foreground" delay={400}>
Supporting copy beneath it.
</FocusBlurResolve>Accessibility
Reduced Motion
FocusBlurResolve calls useReducedMotion() from motion/react. When the user has enabled Reduce Motion in their OS settings, the component renders at full opacity with no blur, scale, or movement — no animation plays. The transition duration is set to 0 so the change is instant.
The outer <span> carries an aria-label equal to children, and the animated inner <motion.span> is marked aria-hidden="true", so screen readers announce the text exactly once.
Props
Fade Through
Material-style phrase cycling animation — old text fades out, new text fades in with a soft delay. Ideal for hero headlines and rotating taglines.
Kinetic Center Build
Apple keynote-style word-by-word build — each new word enters from the right and pushes the line until the full phrase locks centered.