# Anel cônico giratório (B 101)

Categoria: Botões  
Tags: gradient-border, animated, pill, conic, property  
Página: https://designforai.dev/pt/snippet/btn-101

## Prompt

Um botão pílula com borda arco-íris animada de 2px feita de um gradiente cônico (#22d3ee para #a855f7 para #f43f5e) girando a cada 3 segundos por meio de um ângulo com @property, interior escuro #0b1020, texto branco de 15px semibold, padding de 14px por 30px. No hover o interior clareia para #141b33, no active escala para 0.97. O foco é um outline violeta de 2px com offset de 4px.

## HTML

```html
<button class="btn-101">Launch</button>
```

## CSS

```css
@property --a101 {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg
}
.btn-101 {
  position: relative;
  font: 600 15px/1 system-ui,sans-serif;
  color: #fff;
  background: #0b1020;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  isolation: isolate
}
.btn-101::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--a101),#22d3ee,#a855f7,#f43f5e,#22d3ee);
  z-index: -1;
  animation: spin101 3s linear infinite
}
.btn-101::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #0b1020;
  z-index: -1
}
.btn-101:hover::after {
  background: #141b33
}
.btn-101:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 4px
}
.btn-101:active {
  transform: scale(.97)
}
@keyframes spin101 {
  to {
    --a101: 360deg
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-101, .btn-101 * { animation: none; transition: none; }
}
```
