# Nested Rings Spinner

> Three nested arcs in different colors spinning at different speeds, built from one element.

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

## HTML

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

## CSS

```css
.spinner-nested {
  position: relative;
  width: 64px;
  height: 64px;
  border: 3px solid transparent;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spinner-nested-spin 1.4s linear infinite;
}

.spinner-nested::before,
.spinner-nested::after {
  content: "";
  position: absolute;
  border: 3px solid transparent;
  border-radius: 50%;
}

.spinner-nested::before {
  inset: 5px;
  border-top-color: #ec4899;
  animation: spinner-nested-spin 1s linear infinite reverse;
}

.spinner-nested::after {
  inset: 15px;
  border-top-color: #f59e0b;
  animation: spinner-nested-spin 0.7s linear infinite;
}

@keyframes spinner-nested-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner-nested,
  .spinner-nested::before,
  .spinner-nested::after { animation-duration: 3s; }
}
```

## Notes

- This CSS Nested Rings Spinner is 39 lines of pure CSS (0.8 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.
