VHS
A copy-paste glitch & distortion component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Glitch & DistortionHTMLCSSany framework
VHS
Copy into your project
HTML
<!-- VHS — tracking-error band drifts through a tape-noise overlay. -->
<div class="nuda-glitch-vhs">
<span>VHS</span>
<span class="nuda-glitch-vhs__lines"></span>
<span class="nuda-glitch-vhs__track"></span>
</div>CSS
/* ── VHS ─────────────────────────────────────────────────────
Tape-noise lines (static) + one blurred "tracking-error" band
that slowly drifts top→bottom. The text carries a permanent,
gentle cyan/magenta shadow split for the analog-bleed look.
──────────────────────────────────────────────────────────── */
.nuda-glitch-vhs {
position: relative;
display: grid;
place-items: center;
width: 100%;
aspect-ratio: 4 / 3;
border-radius: 12px;
overflow: hidden;
background: linear-gradient(135deg, #13131a, #09090b);
color: #e4ff54;
font: 900 1.3rem/1 ui-sans-serif, system-ui, sans-serif;
letter-spacing: 0.14em;
text-shadow: 1.5px 0 rgba(255, 0, 212, 0.6), -1.5px 0 rgba(0, 229, 255, 0.6);
}
.nuda-glitch-vhs__lines {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
rgba(255, 255, 255, 0.04) 0 1px,
transparent 1px 3px
);
pointer-events: none;
}
.nuda-glitch-vhs__track {
position: absolute;
left: 0;
right: 0;
height: 14%;
background: rgba(228, 255, 84, 0.1);
backdrop-filter: blur(1px);
pointer-events: none;
animation: glitch-vhs-track 6s linear infinite;
}
@keyframes glitch-vhs-track {
0%, 100% { transform: translateY(-20%); }
50% { transform: translateY(620%); }
}
/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.nuda-glitch-vhs__track { animation: none; opacity: 0; }
.nuda-glitch-vhs { text-shadow: none; }
}How to use VHS
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.