# Striped Progress Bar

> A progress bar with moving candy stripes. Set the inner width to the percentage.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: progress, stripes, bar, animated, determinate
- Live preview: https://copy-css.com/snippets/striped-progress
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="progress-striped" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100">
  <div style="width: 65%"></div>
</div>
```

## CSS

```css
.progress-striped {
  width: 220px;
  height: 14px;
  padding: 3px;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-striped div {
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg, #3b82f6 0 10px, #60a5fa 10px 20px);
  background-size: 28.28px 28.28px;
  animation: stripes-move 1s linear infinite;
}

@keyframes stripes-move {
  to { background-position: 28.28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-striped div {
    animation: none;
  }
}
```

## Notes

- This CSS Striped Progress Bar is 25 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses keyframe animations, linear gradients and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
