Skip to content

Dots Grid

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

LoadersHTMLCSSany framework

Copy into your project

HTML
<!-- Dots Grid Loader -->
<div class="nuda-dots-grid" role="status" aria-label="Loading">
  <span></span><span></span><span></span>
  <span></span><span></span><span></span>
  <span></span><span></span><span></span>
</div>
CSS
/* Dots Grid Loader
   3x3 grid of dots pulsing in a diagonal wave pattern.
   Customize: --grid-dot-color, --grid-dot-size */

.nuda-dots-grid {
  --grid-dot-color: #60a5fa;
  --grid-dot-size: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: fit-content;
  padding: 8px;
}

.nuda-dots-grid span {
  width: var(--grid-dot-size);
  height: var(--grid-dot-size);
  background: var(--grid-dot-color);
  border-radius: 50%;
  animation: nuda-dots-grid 1.5s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Diagonal wave: delay = (row + col) * 0.1s */
.nuda-dots-grid span:nth-child(1) { animation-delay: 0s; }
.nuda-dots-grid span:nth-child(2) { animation-delay: 0.1s; }
.nuda-dots-grid span:nth-child(3) { animation-delay: 0.2s; }
.nuda-dots-grid span:nth-child(4) { animation-delay: 0.1s; }
.nuda-dots-grid span:nth-child(5) { animation-delay: 0.2s; }
.nuda-dots-grid span:nth-child(6) { animation-delay: 0.3s; }
.nuda-dots-grid span:nth-child(7) { animation-delay: 0.2s; }
.nuda-dots-grid span:nth-child(8) { animation-delay: 0.3s; }
.nuda-dots-grid span:nth-child(9) { animation-delay: 0.4s; }

@keyframes nuda-dots-grid {
  0%, 100% {
    transform: scale(0.3);
    opacity: 0.2;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-dots-grid span {
    animation: none;
    opacity: 0.5;
    transform: scale(0.8);
  }
}

How to use Dots Grid

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

← Browse all NudaUI components