# Striped Processing Button

> A button with moving diagonal stripes that signal a payment or task is still processing.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: barber pole, pending, busy, payment, animated stripes
- Live preview: https://copy-css.com/snippets/striped-processing-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-stripes" aria-busy="true">Processing payment…</button>
```

## CSS

```css
.btn-stripes {
  padding: 14px 28px;
  border: 0;
  border-radius: 10px;
  background-color: #6d28d9;
  color: #fff;
  font: 600 16px/1 system-ui, sans-serif;
  cursor: pointer;
}

.btn-stripes[aria-busy="true"] {
  background-image: linear-gradient(
    -45deg,
    #7c3aed 25%, #6d28d9 25% 50%,
    #7c3aed 50% 75%, #6d28d9 75%
  );
  background-size: 32px 32px;
  cursor: progress;
  animation: btn-stripes-move 0.8s linear infinite;
}

.btn-stripes:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn-stripes[aria-busy="true"] { animation: none; }
}
```

## Notes

- This CSS Striped Processing Button is 33 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses keyframe animations, linear gradients, keyboard focus styles and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
