Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring""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.
loopbooleanfalseAnimate the pieces out and back in, over and over.
loopDelaynumber1.5Seconds 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.
colorstring""The text colour; empty follows the surrounding text.
accentColorstring""A colour each piece passes through while it reveals.
delaynumber50Milliseconds between one piece and the next.
durationnumber1.25Seconds each piece takes.
easestring""A CSS easing for the reveal; empty uses the effect's own.
staggerFrom"start" | "center" | "end" | "edges" | "random""start"Where the stagger starts.
maskbooleanfalseClip each piece to its own box, so it slides out from behind an edge.
fromKeyframeNoneA custom starting keyframe for each piece; replaces the effect.
toKeyframeNoneA custom final keyframe for each piece; replaces the effect.
thresholdnumber0.1How much of the text must be visible before it plays, 0 to 1.
rootMarginstring"-100px"The margin around the viewport for the visibility check.
textAlignCSSProperties["textAlign"]"center"The text alignment.
onLetterAnimationComplete() => voidNoneCalled when the first reveal completes.
classNamestringNone

More text effects in Pro

View all

Related