Clock Sweep
A copy-paste loaders component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
LoadersHTMLCSSany framework
Copy into your project
HTML
<!-- Clock Sweep Loader -->
<div class="nuda-clock-sweep" role="status" aria-label="Loading">
<div class="nuda-clock-sweep__hand"></div>
</div>CSS
/* Clock Sweep Loader
A hand sweeping around a clock face.
Customize: --clock-size, --clock-color, --clock-border-color */
.nuda-clock-sweep {
--clock-size: 40px;
--clock-color: #60a5fa;
--clock-border-color: rgba(255, 255, 255, 0.2);
width: var(--clock-size);
height: var(--clock-size);
border-radius: 50%;
border: 2px solid var(--clock-border-color);
position: relative;
}
.nuda-clock-sweep__hand {
position: absolute;
top: 50%;
left: 50%;
width: 2px;
height: 40%;
background: var(--clock-color);
border-radius: 1px;
transform-origin: 50% 0%;
animation: nuda-clock-sweep 2s linear infinite;
will-change: transform;
}
@keyframes nuda-clock-sweep {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-clock-sweep__hand {
animation: none;
transform: rotate(45deg);
opacity: 0.6;
}
}How to use Clock Sweep
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.