Orbit Eclipse
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-eclipse">
<span class="nuda-eclipse__sun"></span>
<span class="nuda-eclipse__moon"></span>
</div>CSS
.nuda-eclipse {
position: relative;
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.nuda-eclipse__sun {
position: absolute;
width: 28px;
height: 28px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%,#ffb45e,#ff5e7a);
box-shadow: 0 0 16px rgba(255,180,94,.5);
}
.nuda-eclipse__moon {
position: absolute;
width: 28px;
height: 28px;
border-radius: 50%;
background: #09090b;
animation: _eclipseOrbit 2s linear infinite;
box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
@keyframes _eclipseOrbit {
0% {
transform: translateX(-30px) scale(.6);
}
50% {
transform: translateX(0) scale(1);
}
100% {
transform: translateX(30px) scale(.6);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-eclipse__moon {
animation: none;
}
}
How to use Orbit Eclipse
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.