Letter Cascade
Text split into characters, words or lines that reveal one after another, with seven effects, loops and hover reactions.
pixikit.com/docs/effects/letter-cascade
Customize
Tag
Effect
Split type
Trigger
Loop
Loop delay1.5s
Hover effect
Color
Accent color
Delay50ms
Duration1.25s
Ease
Stagger from
Mask
Text align
Props
22| Name | Type | Default | Description |
|---|---|---|---|
text | string | "" | The text to animate. |
tag | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "p" | The HTML tag to render. |
effect | "rise" | "fade" | "blur" | "flip" | "pop" | "skew" | "wave" | "rise" | The reveal: rise slides up, fade dissolves, blur pulls into focus, flip swings up in 3D, pop scales in with an overshoot, skew slides in leaning, wave lets a crest travel across. |
splitType | "chars" | "words" | "lines" | "words, chars" | "chars" | What a piece is: a character, a word or a line. |
trigger | "view" | "load" | "hover" | "click" | "view" | When the reveal plays; hover and click play it in view and replay it on every hover or click. |
loop | boolean | false | Animate the pieces out and back in, over and over. |
loopDelay | number | 1.5 | Seconds between the end of a reveal and the next loop. |
hoverEffect | "none" | "lift" | "wave" | "none" | After the reveal: lift raises the pieces near the cursor, wave sends a ripple from where the cursor enters. |
color | string | "" | The text colour; empty follows the surrounding text. |
accentColor | string | "" | A colour each piece passes through while it reveals. |
delay | number | 50 | Milliseconds between one piece and the next. |
duration | number | 1.25 | Seconds each piece takes. |
ease | string | "" | A CSS easing for the reveal; empty uses the effect's own. |
staggerFrom | "start" | "center" | "end" | "edges" | "random" | "start" | Where the stagger starts. |
mask | boolean | false | Clip each piece to its own box, so it slides out from behind an edge. |
from | Keyframe | None | A custom starting keyframe for each piece; replaces the effect. |
to | Keyframe | None | A custom final keyframe for each piece; replaces the effect. |
threshold | number | 0.1 | How much of the text must be visible before it plays, 0 to 1. |
rootMargin | string | "-100px" | The margin around the viewport for the visibility check. |
textAlign | CSSProperties["textAlign"] | "center" | The text alignment. |
onLetterAnimationComplete | () => void | None | Called when the first reveal completes. |
className | string | None |