Skip to content

Gear Spinner

A copy-paste spinners component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

SpinnersHTMLCSSany framework

Copy into your project

HTML
<!-- Gear Spinner -->
<div class="nuda-gear-spinner" role="status" aria-label="Loading">
  <svg viewBox="0 0 50 50" width="40" height="40" class="nuda-gear-spinner__svg">
    <path
      d="M25,1 L28,8 L35,5 L34,13 L42,13 L37,19 L44,24 L37,28 L42,34 L34,34 L35,42 L28,39 L25,46 L22,39 L15,42 L16,34 L8,34 L13,28 L6,24 L13,19 L8,13 L16,13 L15,5 L22,8 Z"
      fill="none"
      stroke="#fbbf24"
      stroke-width="1.5"
    />
    <circle cx="25" cy="24" r="6" fill="none" stroke="#fbbf24" stroke-width="1.5" />
  </svg>
</div>
CSS
/* Gear Spinner
   SVG gear/cog shape rotating smoothly.
   Customize: --gear-color (set via SVG stroke attribute) */

.nuda-gear-spinner {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nuda-gear-spinner__svg {
  animation: nuda-gear-spin 3s linear infinite;
  will-change: transform;
}

@keyframes nuda-gear-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-gear-spinner__svg {
    animation: none;
    opacity: 0.6;
  }
}

How to use Gear 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.

More spinners components

← Browse all NudaUI components