Skip to content

Dot Progress Countdown

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

CountdownsHTMLCSSany framework
Offer ends in38s

Copy into your project

HTML
<div class="nuda-cd2-dots" role="timer" aria-label="Dot progress countdown">
  <div class="nuda-cd2-dots__header">
    <span class="nuda-cd2-dots__title">Offer ends in</span>
    <span class="nuda-cd2-dots__count">60s</span>
  </div>
  <div class="nuda-cd2-dots__grid">
    <!-- Repeat 60 spans; add nuda-cd2-dots__dot--on for remaining seconds -->
    <span class="nuda-cd2-dots__dot nuda-cd2-dots__dot--on"></span>
    <span class="nuda-cd2-dots__dot nuda-cd2-dots__dot--on"></span>
    <span class="nuda-cd2-dots__dot"></span>
    <!-- ... -->
  </div>
</div>
CSS
.nuda-cd2-dots {
  background: #141414;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .9rem 1rem;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
}

.nuda-cd2-dots__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .6rem;
}

.nuda-cd2-dots__title {
  color: #777;
  font-size: .72rem;
  letter-spacing: .04em;
}

.nuda-cd2-dots__count {
  color: #e4ff54;
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nuda-cd2-dots__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nuda-cd2-dots__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: background .15s;
}

.nuda-cd2-dots__dot--on {
  background: #e4ff54;
}

How to use Dot Progress Countdown

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