Skip to content

Neon Glow Timer

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

CountdownsHTMLCSSany framework
03:29:58

Copy into your project

HTML
<div class="nuda-cd2-neon" role="timer" aria-label="Neon glow timer">
  <span class="nuda-cd2-neon__digit">0</span>
  <span class="nuda-cd2-neon__digit">3</span>
  <span class="nuda-cd2-neon__sep">:</span>
  <span class="nuda-cd2-neon__digit">2</span>
  <span class="nuda-cd2-neon__digit">9</span>
  <span class="nuda-cd2-neon__sep">:</span>
  <!-- Add --hot modifier when seconds < 10 for urgency -->
  <span class="nuda-cd2-neon__digit nuda-cd2-neon__digit--hot">5</span>
  <span class="nuda-cd2-neon__digit nuda-cd2-neon__digit--hot">8</span>
</div>
CSS
.nuda-cd2-neon {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #0d0d0d;
  border: 1px solid rgba(228,255,84,.15);
  border-radius: 10px;
  padding: .6rem .85rem;
  width: fit-content;
}

.nuda-cd2-neon__digit {
  color: #e4ff54;
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
  text-shadow: 0 0 8px #e4ff54,0 0 18px rgba(228,255,84,.5);
  animation: _nuda-cd2neonpulse 2s ease-in-out infinite;
}

.nuda-cd2-neon__digit--hot {
  color: #ff6b6b;
  text-shadow: 0 0 8px #ff6b6b,0 0 20px rgba(255,107,107,.6);
  animation: _nuda-cd2neonhot 1s ease-in-out infinite;
}

.nuda-cd2-neon__sep {
  color: rgba(255,255,255,.25);
  font-size: 1.5rem;
  font-weight: 900;
  font-family: monospace;
  line-height: 1;
  align-self: flex-start;
  padding-top: 2px;
}

@keyframes _nuda-cd2neonpulse {
  0%,100% {
    text-shadow: 0 0 8px #e4ff54,0 0 18px rgba(228,255,84,.5);
  }
  50% {
    text-shadow: 0 0 14px #e4ff54,0 0 30px rgba(228,255,84,.8);
  }
}

@keyframes _nuda-cd2neonhot {
  0%,100% {
    text-shadow: 0 0 8px #ff6b6b,0 0 20px rgba(255,107,107,.6);
  }
  50% {
    text-shadow: 0 0 16px #ff6b6b,0 0 36px rgba(255,107,107,.9);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-cd2-neon__digit,.nuda-cd2-neon__digit--hot {
    animation: none;
  }
}

How to use Neon Glow Timer

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 countdowns components

← Browse all NudaUI components