Blur Text
Customize
Props
| Property | Type | Default | Description |
|---|---|---|---|
text | string | "BLUR TEXT" | Display text to animate. |
animateBy | string | "letter" | Animate character-by-character or word-by-word: "letter" | "word". |
from | string | "center" | Stagger origin for reveal: "center" | "start" | "end" | "random". |
charDelay | number | 0.06 | Stagger delay (s) between each character entrance (used when animateBy="letter"). |
wordDelay | number | 0.15 | Stagger delay (s) between each word entrance (used when animateBy="word"). |
scale | number | 4 | Initial scale of each token before it animates in. |
blur | number | 8 | Initial blur amount (px) applied to each token before it animates in. |
yOffset | number | 0 | Initial Y offset (px) — tokens travel upward into position. 0 disables vertical movement. |
duration | number | 0.8 | Duration (s) of the animation for each character or word. |
repeat | boolean | false | Loop the explode animation indefinitely. |
color | string | "#d35af8" | CSS color value for the text, e.g. "#fff" or "crimson". Ignored when gradient is set. |
gradient | string | "" | CSS gradient string applied as a text gradient, e.g. "linear-gradient(90deg,#f97316,#ec4899)". Overrides color when set. |
fontSize | string | "text-6xl" | Tailwind font-size class, e.g. "text-4xl" | "text-6xl" | "text-9xl". |
className | string | "" | Extra classes applied to the root wrapper div. |
textstringDisplay text to animate.
"BLUR TEXT"animateBystringAnimate character-by-character or word-by-word: "letter" | "word".
"letter"fromstringStagger origin for reveal: "center" | "start" | "end" | "random".
"center"charDelaynumberStagger delay (s) between each character entrance (used when animateBy="letter").
0.06wordDelaynumberStagger delay (s) between each word entrance (used when animateBy="word").
0.15scalenumberInitial scale of each token before it animates in.
4blurnumberInitial blur amount (px) applied to each token before it animates in.
8yOffsetnumberInitial Y offset (px) — tokens travel upward into position. 0 disables vertical movement.
0durationnumberDuration (s) of the animation for each character or word.
0.8repeatbooleanLoop the explode animation indefinitely.
falsecolorstringCSS color value for the text, e.g. "#fff" or "crimson". Ignored when gradient is set.
"#d35af8"gradientstringCSS gradient string applied as a text gradient, e.g. "linear-gradient(90deg,#f97316,#ec4899)". Overrides color when set.
""fontSizestringTailwind font-size class, e.g. "text-4xl" | "text-6xl" | "text-9xl".
"text-6xl"classNamestringExtra classes applied to the root wrapper div.
""Dependencies
Crafted withbyMohammad Tasin
