Pinatool

CSS Loading Spinner Generator

Design polished, lightweight loading indicators with real-time preview across light and dark surfaces. Customize archetype styles, size, animation speed, and colors, then copy accessible HTML and production CSS without any image assets or JavaScript dependencies.

Select Spinner Style

Choose an animation archetype to configure

Live Spinner Stage

Interactive real-time preview of size, speed, and colors

Loading...
Accessible status: "Loading..."Speed: 0.8s

Spinner Dimensions & Timing

48px
5px
0.8s
Primary Spinner Color

Production HTML & CSS Code

Clean CSS custom properties with an accessible screen-reader status label and reduced-motion timing.

.spinner {
  --spinner-size: 48px;
  --spinner-thickness: 5px;
  --spinner-speed: 0.8s;
  --spinner-color: #14b8a6;
  --spinner-secondary: #0f1d3a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spinner--ring {
  width: var(--spinner-size);
  aspect-ratio: 1;
  border: var(--spinner-thickness) solid color-mix(in srgb, var(--spinner-color) 20%, transparent);
  border-top-color: var(--spinner-color);
  border-radius: 50%;
  animation: spinner-rotate var(--spinner-speed) linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner,
  .spinner > span {
    animation-duration: 2.5s;
  }
}

How It Works

1

Select a Spinner Archetype

Choose from classic rings, dual opposing arcs, bouncing dots, soundwave bars, orbiting satellites, or expanding pulse ripples.

2

Fine-Tune Dimensions & Speed

Adjust diameter, border thickness, rotation duration, and branding colors. Preview against light and dark background cards.

3

Copy Accessible Code

Copy semantic HTML with role="status" and CSS custom properties ready to drop directly into React, Vue, Svelte, or plain HTML projects.

CSS Loading Spinner Generator Key Features

CSS Custom Properties

Parameterized with clean CSS variables so you can easily scale size, change colors, or alter speed dynamically on the fly.

Zero Runtime Dependencies

Pure CSS animations running smoothly on the GPU without JavaScript runtime timers, external icon packs, or GIF/SVG files.

Accessible Screen Reader Support

Includes role="status" and visually-hidden text labels so users navigating with assistive technology know work is taking place.

Frequently Asked Questions

How do pure CSS loading spinners work without JavaScript?

Pure CSS spinners leverage CSS animations (@keyframes) and properties like transform: rotate(), scale(), and border-radius. Once rendered in the DOM, they loop infinitely via animation: ... infinite without requiring JavaScript timers or external assets.

Why is an accessible screen-reader label included in the HTML snippet?

Visual animation indicators are decorative to users with vision loss or screen-reading software. Adding role="status" and a visually hidden .sr-only label ensures assistive technology announces that background work or page loading is in progress.

How does prefers-reduced-motion affect CSS loading spinners?

Because users with vestibular conditions or motion sensitivity may feel disoriented by rapid spinning, the generated CSS includes an accessible @media (prefers-reduced-motion: reduce) rule that slows down rotational speeds while preserving the loading status.

Which spinner style is best for button states versus full-page loading?

Single and dual rings or compact dots (20px–28px) work best inside form submit buttons and search inputs. Larger rings, equalizer bars, and expanding pulse ripples (48px–96px) provide clear feedback for initial page loads or asynchronous data tables.

Can I customize spinner colors and dimensions using CSS variables?

Yes. The generated code encapsulates geometry into CSS variables (--spinner-size, --spinner-thickness, --spinner-speed, --spinner-color). You can override these variables dynamically in your own theme or parent containers with zero code duplication.