Scanline Glitch

Glitch & Distortion · Animated · pure CSS

CRT-style scanlines over the text with a subtle flicker. Adds a retro-monitor texture without obscuring the letters.

Scanline Glitch

CSS

/* Scanline Glitch — generated with TEXT-FX
 * HTML: just put the class on any element.
 * Font: 'Bungee', cursive (load from Google Fonts).
 */

.text-effect {
  font-family: 'Bungee', cursive;
  font-weight: 900;
  letter-spacing: 0px;
  text-transform: none;
}

.text-effect {
  background: repeating-linear-gradient(0deg, hsl(95 95% 66%) 0px, hsl(95 95% 66%) 2px, hsl(95 90% 30%) 2px, hsl(95 90% 30%) 4px);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 100% 8px;
  filter: drop-shadow(0 0 4px hsl(95 100% 60%)) drop-shadow(0 0 10px hsl(95 100% 60%));
  animation:
    text-effect-scan 5.8s linear infinite,
    text-effect-flick 0.97s steps(1, end) infinite;
}

@keyframes text-effect-scan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 8px; }
}
@keyframes text-effect-flick {
  0%, 88%, 100% { opacity: 1; }
  90%           { opacity: 0.82; }
  94%           { opacity: 0.96; }
  97%           { opacity: 0.7; }
}

Pure CSS — just add the .text-effect class to any element.

Category
Glitch & Distortion
Type
Animated
Browser support
background-clip:text scanline gradient (all modern, -webkit- prefixed)
Capabilities
pure

Related Glitch & Distortion effects