Skip to content

Pinwheel

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

SpinnersHTMLCSSany framework

Copy into your project

HTML
<!-- Pinwheel Spinner -->
<div class="nuda-pinwheel" role="status" aria-label="Loading">
  <span style="transform:rotate(0deg)"></span>
  <span style="transform:rotate(60deg)"></span>
  <span style="transform:rotate(120deg)"></span>
  <span style="transform:rotate(180deg)"></span>
  <span style="transform:rotate(240deg)"></span>
  <span style="transform:rotate(300deg)"></span>
</div>
CSS
/* Pinwheel Spinner
   Triangular blades arranged radially; the whole wheel rotates.
   Each blade's angle comes from its inline transform.
   Customize: --pinwheel-color */

.nuda-pinwheel {
  --pinwheel-color: #e4ff54;
  position: relative;
  width: 40px;
  height: 40px;
  animation: nuda-pinwheel 1.2s linear infinite;
  will-change: transform;
}

.nuda-pinwheel span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 20px solid var(--pinwheel-color);
  transform-origin: 50% 20px;
  opacity: 0.85;
}

.nuda-pinwheel span:nth-child(even) {
  border-bottom-color: rgba(228, 255, 84, 0.45);
}

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

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

How to use Pinwheel

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