# Pie Timer Loader

> A pie that fills clockwise like a countdown, made with a thick SVG stroke and stroke-dasharray.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: countdown, svg, stroke-dasharray, sweep, clock
- Live preview: https://copy-css.com/snippets/pie-timer-loader
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<svg class="loader-pie" viewBox="0 0 32 32" role="status" aria-label="Loading">
  <circle cx="16" cy="16" r="8"/>
</svg>
```

## CSS

```css
.loader-pie {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fecdd3;
  transform: rotate(-90deg);
}

/* r = 8 and stroke-width = 16 turn the stroke into a filled pie (2πr ≈ 50.3) */
.loader-pie circle {
  fill: none;
  stroke: #e11d48;
  stroke-width: 16;
  stroke-dasharray: 0 50.3;
  animation: loader-pie-fill 2s linear infinite;
}

@keyframes loader-pie-fill {
  to { stroke-dasharray: 50.3 50.3; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-pie circle { animation-duration: 5s; }
}
```

## Notes

- This CSS Pie Timer Loader is 24 lines of pure CSS (0.5 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.
