Arc Pulse
A copy-paste spinners component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
SpinnersHTMLCSSany framework
Copy into your project
HTML
<!-- Arc Pulse Spinner -->
<div class="nuda-arcpulse" role="status" aria-label="Loading">
<svg viewBox="0 0 50 50" width="40" height="40" class="nuda-arcpulse__svg">
<circle class="nuda-arcpulse__arc" cx="25" cy="25" r="20"
fill="none" stroke-width="4" stroke-linecap="round" />
</svg>
</div>CSS
/* Arc Pulse Spinner
A rotating arc that also grows/shrinks via stroke-dashoffset.
Customize: --arcpulse-color */
.nuda-arcpulse {
--arcpulse-color: #e4ff54;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.nuda-arcpulse__svg {
animation: nuda-arcpulse-rot 1.4s linear infinite;
will-change: transform;
}
.nuda-arcpulse__arc {
stroke: var(--arcpulse-color);
stroke-dasharray: 126;
animation: nuda-arcpulse-dash 1.4s ease-in-out infinite;
}
@keyframes nuda-arcpulse-rot {
to { transform: rotate(360deg); }
}
@keyframes nuda-arcpulse-dash {
0% { stroke-dashoffset: 120; }
50% { stroke-dashoffset: 30; }
100% { stroke-dashoffset: 120; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-arcpulse__svg,
.nuda-arcpulse__arc { animation: none; }
.nuda-arcpulse__arc { stroke-dashoffset: 60; }
}How to use Arc Pulse
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.