Text Glitch

A chromatic clip-path glitch for headlines, CSS-only and entirely GPU-friendly.

textglitchheadlineanimationtypographychromatic
Text Glitch component preview

Props

PropTypeDefaultDescription
textstring-The string to render.
askeyof React.JSX.IntrinsicElements"span"Tag rendered as the outer element.
durationnumber2.4Base glitch cycle in seconds. Channel layers desync automatically.
offsetnumber5Horizontal slice offset in CSS pixels.
enableShadowsbooleantrueChromatic aberration text-shadows on the slice layers.
leftColorstringthemeLeft-channel shadow color. Omit for theme cyan.
rightColorstringthemeRight-channel shadow color. Omit for theme rose.
surfaceColorstringthemeOpaque mask behind each slice. Omit for theme surface (#fafafa / #0a0a0b).
trigger"always" | "hover""always"When to run the loop.
pausedboolean-Force the loop paused. When omitted, auto-pauses off-screen or when the tab is hidden.