Create an animated CSS glitch text effect. Type your text, choose the two offset colors, set the intensity, speed and size, and decide whether it glitches all the time or only on hover. The output is self-contained HTML and CSS with no JavaScript, and it switches off for visitors who've asked for reduced motion. It's free, runs in your browser, and nothing is uploaded.
| Look | Layer 1 | Layer 2 |
|---|---|---|
| RGB split | #ff00c1 | #00fff9 |
| Red/cyan anaglyph | #ff0000 | #00ffff |
| Synthwave | #f72585 | #4cc9f0 |
| Terminal | #00ff41 | #008f11 |
Two copies of the text, created with ::before and ::after from a data-text attribute, are offset, tinted and sliced by an animated clip-path.
The glitch layers are painted with it to hide parts of the text. If it doesn't match the page, you'll see colored boxes.
Flickering animation can trigger migraines and seizures. This CSS turns the effect off for anyone with reduced motion enabled; consider the hover-only option too.
Yes. It uses the element's own font; bold display fonts look best.
No. The code is generated in your browser.
The glitch effect duplicates the text into two pseudo-element layers using content: attr(data-text), so the layers always show the same words as the element without repeating them in the markup. Each layer is offset a couple of pixels in opposite directions and given a colored text-shadow — classically magenta and cyan — then sliced with an animated clip-path: inset() that shows a different horizontal band on each keyframe while nudging the layer sideways. Two keyframe sets running at slightly different durations keep the slices from lining up, which is what makes it look random. The layers are painted with the background color so the slices hide the real text beneath them, which is why the background must match the page. A hover-only variant starts the animation on :hover. Under prefers-reduced-motion the layers are removed entirely, since rapid flicker can trigger migraines and, in rare cases, seizures.