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
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "" | The text content to display and animate. |
delay | number | 200 | Delay in milliseconds between each animated segment. |
className | string | "" | 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. |
threshold | number | 0.1 | Intersection Observer threshold (0-1). |
rootMargin | string | "0px" | Intersection Observer root margin. |
animationFrom | Record<string, string | number> | - | Custom starting animation keyframe. |
animationTo | Array<Record<string, string | number>> | - | Custom target animation keyframes. |
easing | Easing | Easing[] | (t: number) => t | Animation easing function or array of functions. |
onAnimationComplete | () => void | - | Callback fired when the entire animation completes. |
stepDuration | number | 0.35 | Duration in seconds for each keyframe step. |