Atom Spinner
A copy-paste spinners component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
SpinnersHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-atom">
<span class="nuda-atom__orbit nuda-atom__orbit--1"></span>
<span class="nuda-atom__orbit nuda-atom__orbit--2"></span>
<span class="nuda-atom__orbit nuda-atom__orbit--3"></span>
<span class="nuda-atom__core"></span>
</div>CSS
.nuda-atom {
position: relative;
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.nuda-atom__orbit {
position: absolute;
width: 100%;
height: 100%;
border: 1px solid #e4ff54;
border-radius: 50%;
border-color: #e4ff54 transparent #e4ff54 transparent;
animation: _atomSpinA 1.4s linear infinite;
}
.nuda-atom__orbit--2 {
animation: _atomSpinB 1.8s linear infinite;
}
.nuda-atom__orbit--3 {
animation: _atomSpinC 2.2s linear infinite;
}
.nuda-atom__core {
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
background: #e4ff54;
box-shadow: 0 0 8px #e4ff54;
}
@keyframes _atomSpinA {
to {
transform: rotate(360deg);
}
}
@keyframes _atomSpinB {
from {
transform: rotate(60deg);
}
to {
transform: rotate(-300deg);
}
}
@keyframes _atomSpinC {
from {
transform: rotate(-60deg);
}
to {
transform: rotate(300deg);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-atom__orbit {
animation: none;
}
}
How to use Atom Spinner
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.