Skip to content

Grain Reveal

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

Noise & GrainHTMLCSSany framework
NUDA

Copy into your project

HTML
<!-- Grain Reveal — content emerges as grain dissolves -->
<div class="nuda-grain-reveal">
  <span class="nuda-grain-reveal__text">NUDA</span>
  <div class="nuda-grain-reveal__grain" aria-hidden="true"></div>
</div>
CSS
.nuda-grain-reveal {
  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-reveal__text {
  font-family: ui-sans-serif,system-ui,sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #e4ff54;
  animation: _grainRevealText 6s ease-in-out infinite;
}

.nuda-grain-reveal__grain {
  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;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: _grainRevealNoise 6s ease-in-out infinite,_grainRevealShift .5s steps(5) infinite;
}

@keyframes _grainRevealText {
  0%,20% {
    opacity: 0;
    transform: scale(.96);
  }
  55%,80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(.96);
  }
}

@keyframes _grainRevealNoise {
  0%,20% {
    opacity: .6;
  }
  55%,100% {
    opacity: 0;
  }
}

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

@media (prefers-reduced-motion:reduce) {
  .nuda-grain-reveal__text {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .nuda-grain-reveal__grain {
    animation: none;
    opacity: 0;
  }
}

How to use Grain Reveal

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