# Ring Spinner

> The essential loading spinner: a single element with a colored arc.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: spinner, loading, circle, rotate
- Live preview: https://copy-css.com/snippets/ring-spinner
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="spinner" role="status" aria-label="Loading"></div>
```

## CSS

```css
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}
```

## Notes

- This CSS Ring Spinner is 18 lines of pure CSS (0.3 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
