# VHS Text

> Retro VHS screen text with scanlines, a soft color bleed and a bright tracking band rolling down.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: retro, scanlines, glitch, tape, 80s
- Live preview: https://copy-css.com/snippets/vhs-text
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<p class="text-vhs">PLAY <span aria-hidden="true">▶</span></p>
```

## CSS

```css
.text-vhs {
  position: relative;
  margin: 0;
  padding: 8px 14px;
  overflow: hidden;
  color: #f8fafc;
  font: 700 40px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.1em;
  text-shadow:
    2px 0 #ff2d5599,
    -2px 0 #22d3ee99,
    0 0 10px #ffffff66;
  animation: text-vhs-jitter 4s steps(1) infinite;
}

/* Scanlines plus a bright band that rolls down */
.text-vhs::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#ffffff00 42%, #ffffff2e 50%, #ffffff00 58%) 0 0 / 100% 300% no-repeat,
    repeating-linear-gradient(#00000000 0 2px, #00000059 2px 4px);
  animation: text-vhs-roll 3s linear infinite;
  pointer-events: none;
}

@keyframes text-vhs-jitter {
  0%, 100% { transform: none; }
  50% { transform: translateX(2px); }
  52% { transform: translateX(-3px) skewX(-6deg); }
  54% { transform: none; }
}

@keyframes text-vhs-roll {
  from { background-position: 0 100%, 0 0; }
  to { background-position: 0 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .text-vhs,
  .text-vhs::after { animation: none; }
}
```

## Notes

- This CSS VHS Text is 43 lines of pure CSS (1.1 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms, linear gradients and text shadows.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
