Generate a lightweight, pure-CSS loading spinner. Pick a ring, dual ring, bouncing dots, bars or pulse, set the size, thickness, color and speed, and copy HTML and CSS with no images, no SVG and no JavaScript. The markup includes a screen-reader label and respects reduced-motion settings. It's free, runs in your browser, and nothing leaves your device.
| Style | Elements | Best for |
|---|---|---|
| Ring | 1 | General loading |
| Dual ring | 1 | Compact, more visible motion |
| Dots | 3 | Inline, chat 'typing' feel |
| Bars | 4 | Audio or data apps |
| Pulse | 1 | Subtle background activity |
No. It's HTML and CSS only. Use JavaScript just to show and hide it.
It has role="status" and hidden “Loading…” text so screen readers announce it, and it slows down for users who prefer reduced motion.
Yes. Animation names include the class name, so different spinners don't clash.
Browsers can animate them without repainting the page, which keeps the spinner smooth even while JavaScript is busy.
No. The code is generated in your browser.
Each spinner is a single element, with child spans where the style needs them, animated by @keyframes using only transform and opacity, which browsers can run on the compositor without repainting. The ring is a circle with one colored border segment over a track color, rotated continuously; the dual ring colors two opposite segments; dots and bars use staggered negative animation delays so they start mid-cycle rather than all together; pulse scales a circle up while fading it out. Keyframe names are prefixed with the class name so several spinners can live on one page. For accessibility the wrapper has role="status" and contains visually hidden “Loading…” text, so screen readers announce it. Under prefers-reduced-motion the animation is slowed to a quarter speed rather than removed, because a frozen spinner looks like a broken page.