Animated Dots
A copy-paste dividers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
DividersHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-dot-divider" role="separator" aria-hidden="true">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>CSS
/* Animated Dots Divider
A row of dots that pulse in sequence.
Customize: --dot-color, --dot-size, --dot-gap */
.nuda-dot-divider {
--dot-color: #e4ff54;
--dot-size: 4px;
--dot-gap: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: var(--dot-gap);
padding: 0.5rem 0;
}
.nuda-dot-divider span {
width: var(--dot-size);
height: var(--dot-size);
border-radius: 50%;
background: var(--dot-color);
opacity: 0.3;
animation: nuda-dot-pulse 2s ease-in-out infinite;
}
.nuda-dot-divider span:nth-child(1) { animation-delay: 0s; }
.nuda-dot-divider span:nth-child(2) { animation-delay: 0.15s; }
.nuda-dot-divider span:nth-child(3) { animation-delay: 0.3s; }
.nuda-dot-divider span:nth-child(4) { animation-delay: 0.45s; }
.nuda-dot-divider span:nth-child(5) { animation-delay: 0.6s; }
.nuda-dot-divider span:nth-child(6) { animation-delay: 0.75s; }
.nuda-dot-divider span:nth-child(7) { animation-delay: 0.9s; }
@keyframes nuda-dot-pulse {
0%, 100% {
opacity: 0.3;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.5);
}
}
@media (prefers-reduced-motion: reduce) {
.nuda-dot-divider span {
animation: none;
opacity: 0.5;
}
}How to use Animated Dots
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.