← All tools

CSS Loader Generator

Customize a circular spinner with independent track and accent colors.

css-loader-generatorLOCAL WORKSPACE

Enabling local controls…

Tool settings

Settings stay on this page. Reloading restores the defaults.

Feature reference checked 2026-11-21 · ZeroServer

Live preview and export

CSS

.css-loader {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 5px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .css-loader {
    animation: css-loader-spin 1s linear infinite;
  }
  
  @keyframes css-loader-spin {
    to { transform: rotate(360deg); }
  }
}

HTML

<div role="status" aria-label="Loading"><div class="css-loader" aria-hidden="true"></div></div>

How to use this tool

Choose a preset or edit the controls. Compare the live preview, then copy or download the styles and any available markup.

When not to use it

Verify contrast, placement and browser behavior in the component that will use the exported styles.