Skip to content

Glitch

The Glitch text effect produces cyberpunk-themed digital interference over text spans by rapidly setting random clip-paths, horizontal/vertical translation offsets, skew transforms, and dual-layered RGB-split text shadows.


Standard Glitch Trigger

The iterations parameter defines the number of rapid frame transformations. stepDuration sets the lifespan in seconds of each discrete glitch state.

STABLE_SIGNAL

60 FPS

Aggressive Cyberpunk Interference

Increasing intensity expands translation and skew offsets, and setting custom color1 and color2 overrides the RGB splitting palette.

OVERLOAD_ERR

60 FPS

Subtle Micro-Interference

Reducing the intensity and increasing the stepDuration results in a slower, less chaotic signal waver.

SIGNAL_WAVER

60 FPS

Word-Level Block Glitching

Setting the type configuration option to 'words' groups text characters and applies coordinated displacement to whole word elements.

BLOCKS FAILING ONLINE

60 FPS

Periodic Loop Bursting

Combining repeat: -1 and a non-zero repeatDelay configures a loop sequence that fires brief glitch bursts separated by normal signal pauses.

BURST_SEQUENCE

60 FPS

API Reference

javascript
import { glitch } from 'animx/plugins/Text'

const tl = glitch(target, config)

Configuration Options

OptionDefaultDescription
type'chars'Slicing unit layout: 'chars', 'words', or 'lines'.
iterations8Total number of rapid glitch frame transitions.
stepDuration0.06Lifespan in seconds of each discrete glitch frame state.
intensity1.0Offset scale multiplier for translations, skews, and shadow offsets.
color1'#ff0055'Color of the first horizontal RGB split shadow.
color2'#00d4ff'Color of the second horizontal RGB split shadow.
revertOnCompletefalseResets layout and removes absolute spans on complete.
pausedfalseStandard playback initialization lock flag.