Split Text

Text Effects

GSAP SplitText-powered reveal animation with per-character, per-word, or per-line staggering and scroll trigger support.

Loading preview...
Customize
Split Type:
Ease:
Text
Stagger Delay (ms)
50
Duration (s)
1.25

Props

PropTypeDefaultDescription
textstring''The text content to animate.
classNamestring''Additional classes applied to the text element.
delaynumber50Stagger delay in milliseconds between split items.
durationnumber1.25Duration of each split item animation in seconds.
easestring | Function'power3.out'GSAP easing function.
splitType'chars' | 'words' | 'lines' | 'words, chars''chars'How text should be split before animation.
fromgsap.TweenVars{ opacity: 0, y: 40 }Initial tween values for split targets.
togsap.TweenVars{ opacity: 1, y: 0 }Target tween values for split targets.
thresholdnumber0.1Visibility threshold used to trigger animation.
rootMarginstring'-100px'Root margin offset used in start calculation.
tag'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span''p'HTML tag used to render text.
textAlignCSSProperties['textAlign']'center'Text alignment.
onLetterAnimationComplete() => voidundefinedCallback fired once animation completes.