About CSS Text Glitch Effect Generator
A CSS glitch effect imitates a distorted video signal on text. This generator copies the text into two pseudo-elements with a data-text attribute, colors each copy, shifts them a few pixels left and right, and animates clip-path so only changing horizontal strips of each copy show. No images or script are needed. The output turns the animation off for visitors who prefer reduced motion, since flicker can be uncomfortable.
How to use CSS Text Glitch Effect Generator
- Fill in "Text", "First layer color", "Second layer color" and "Speed", and the other options.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about CSS Text Glitch Effect Generator
Why does the element need a data-text attribute?
Pseudo-elements cannot read the text content of their element, but content: attr(data-text) can read an attribute. Repeating the text in data-text lets the two colored layers show the same words without duplicate markup.
Runs in your browser. Page last updated .