← Prev49/129Next →
ReactBits

ReactBits

GlitchText

CSS-only glitch effect with red/cyan offset layers, clip-path animation, and configurable speed. No JS animation runtime.

Hero (slow, dramatic)

BEIRUX
speed=1.2enableShadows=true

Default speed

GLITCH
speed=0.5 (default)enableShadows=true

Fast (aggressive)

ERROR
speed=0.2enableShadows=true

No shadows (clean offset)

CLEAN
speed=0.5enableShadows=false

Hover to glitch

HOVER ME
speed=0.4enableOnHover=true

Inline (smaller, custom className)

The system encountered a
FATAL
error during the last transmission. All nodes have been disconnected. Please
REBOOT
to restore the connection.
className="!text-2xl !mx-0 inline-block"

Props

PropTypeDefaultDescription
childrenstringrequiredText to display
speednumber0.5Base animation speed in seconds (lower = faster)
enableShadowsbooleantrueShow red/cyan color offset shadows
enableOnHoverbooleanfalseOnly animate on hover (static until hovered)
classNamestring""Additional Tailwind classes (use ! for overrides)