Blur Text(001)

Text starts blurred then crisply resolves for a soft-focus reveal effect.

HoverClick
Requires:motion
Loading…

Installation

$npx kibo add blur-text

Usage

1import { BlurText } from "@/components/kibo/blur-text/component";
2
3export default function MyComponent() {
4 return (
5 <BlurText
6 text="Experience motion like never before."
7 className="text-4xl font-semibold text-white"
8 delay={150}
9 />
10 );
11}

Props Reference

PropTypeDefaultDescription
textstring""The text content to display and animate.
delaynumber200Delay in milliseconds between each animated segment.
classNamestring""Additional CSS classes to apply to the container.
animateBy"words" | "letters""words"Whether to animate word by word or letter by letter.
direction"top" | "bottom""top"The direction the text should animate from.
thresholdnumber0.1Intersection Observer threshold (0-1).
rootMarginstring"0px"Intersection Observer root margin.
animationFromRecord<string, string | number>-Custom starting animation keyframe.
animationToArray<Record<string, string | number>>-Custom target animation keyframes.
easingEasing | Easing[](t: number) => tAnimation easing function or array of functions.
onAnimationComplete() => void-Callback fired when the entire animation completes.
stepDurationnumber0.35Duration in seconds for each keyframe step.