# Dashed gradient march (B 104)

Category: Buttons  
Tags: gradient-border, animated, rectangle, conic, dashed  
Page: https://designforai.dev/snippet/btn-104

## Prompt

A pale blue #eff6ff button with a 2px dashed border made from a repeating conic gradient (12 degree blue #3b82f6 segments, 12 degree gaps) that slowly rotates so the dashes march around the edge over 6 seconds. 8px radius, #1e3a8a 14px medium text, 13px by 22px padding. Hover #dbeafe, active #bfdbfe, focus 2px blue outline offset 4px.

## HTML

```html
<button class="btn-104">Import file</button>
```

## CSS

```css
@property --a104 {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg
}
.btn-104 {
  position: relative;
  font: 500 14px/1 system-ui,sans-serif;
  color: #1e3a8a;
  background: #eff6ff;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  isolation: isolate
}
.btn-104::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: repeating-conic-gradient(from var(--a104),#3b82f6 0 12deg,transparent 12deg 24deg);
  z-index: -1;
  animation: march104 6s linear infinite
}
.btn-104::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #eff6ff;
  z-index: -1
}
.btn-104:hover::after {
  background: #dbeafe
}
.btn-104:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 4px
}
.btn-104:active::after {
  background: #bfdbfe
}
@keyframes march104 {
  to {
    --a104: 360deg
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-104, .btn-104 * { animation: none; transition: none; }
}
```
