CSS Loader Generator screenshot

CSS Loader Generator

Build a CSS-only loading animation — spinner, dots, bars or pulse — at your size, colour and speed. Copy the keyframes and rule. No upload.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What the CSS loader generator does

A loader is four animations behind one class. Spinner draws a ring with a highlighted arc; dots and bars use ::before and ::after so a single element renders three marks with staggered delays; pulse scales one circle. Set the size and the speed and the rule follows, and the colour is rebuilt from the parsed value rather than pasted in. The output ends with a prefers-reduced-motion block that stops the animation, because a spinner that ignores that request is the one accessibility failure this generator can cause. It shows activity, not progress: nothing here knows how much work is left.

How to use it

The CSS Loader Generator page needs no pasted input: set Loader type (default "spinner"), Size (px), default "48", Colour (default "#2563eb") and Cycle time (s), default "1", then press Run to build a new CSS.

Worked example

Input:


Output:

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

.loader {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .loader,
  .loader::before,
  .loader::after {
    animation: none;
  }
}

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

A loader is four animations behind one class. Spinner draws a ring with a highlighted arc; dots and bars use ::before and ::after so a single element renders three marks with staggered delays; pulse scales one circle. Set the size and the speed and the rule follows, and the colour is rebuilt from the parsed value rather than pasted in. The output ends with a prefers-reduced-motion block that stops the animation, because a spinner that ignores that request is the one accessibility failure this generator can cause. It shows activity, not progress: nothing here knows how much work is left.

Build a CSS-only loading animation — spinner, dots, bars or pulse — at your size, colour and speed. Copy the keyframes and rule. No upload.

How to use it

The CSS Loader Generator page needs no pasted input: set Loader type (default "spinner"), Size (px), default "48", Colour (default "#2563eb") and Cycle time (s), default "1", then press Run to build a new CSS.

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

What to Expect

What this tool keeps

  • The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

Sample output

@keyframes loader-spin { to { transform: rotate(360deg); } } .loader { box-sizing: border-box; width: 48px; height: 48px; border: 4px solid rgba(37, 99, 235, 0.25); border-top-color: #2563eb; border-radius: 50%; animation: loader-spin 1s linear infinite; } @media (prefers-reduced-motion: reduce) { .loader, .loader::before, .loader::after { animation: none; } }

Frequently asked questions

How do I use the css loader generator?

The CSS Loader Generator page needs no pasted input: set Loader type (default "spinner"), Size (px), default "48", Colour (default "#2563eb") and Cycle time (s), default "1", then press Run to build a new CSS.

Is my input uploaded?

Nothing is uploaded. The result is produced on this page.

Is there a size limit?

No: nothing is pasted, so there is no input size to exceed.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.