Skip to content

TV Static

A copy-paste noise & grain component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Noise & GrainHTMLCSSany framework
NO SIGNAL

Copy into your project

HTML
<!-- TV Static — subtle flickering static panel (a11y-safe, <=3/s) -->
<div class="nuda-grain-tv-static">
  <div class="nuda-grain-tv-static__noise" aria-hidden="true"></div>
  <span class="nuda-grain-tv-static__label">NO SIGNAL</span>
</div>
CSS
.nuda-grain-tv-static {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.nuda-grain-tv-static__noise {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: .22;
  pointer-events: none;
  animation: _tvStaticShift .8s steps(4) infinite,_tvStaticFlicker 3s ease-in-out infinite;
}

.nuda-grain-tv-static__label {
  position: relative;
  z-index: 1;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #e4ff54;
  text-shadow: 0 0 8px rgba(228,255,84,.5);
}

@keyframes _tvStaticShift {
  0% {
    transform: translate3d(0,0,0);
  }
  25% {
    transform: translate3d(-10px,6px,0);
  }
  50% {
    transform: translate3d(8px,-8px,0);
  }
  75% {
    transform: translate3d(-6px,-4px,0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

@keyframes _tvStaticFlicker {
  0%,100% {
    opacity: .18;
  }
  50% {
    opacity: .28;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-grain-tv-static__noise {
    animation: none;
    opacity: .2;
  }
}

How to use TV Static

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.

More noise & grain components

← Browse all NudaUI components