# Sparkle magic wand (B 180)

Category: Buttons  
Tags: sparkle, ai, pill, icon, rotate, gradient  
Page: https://designforai.dev/snippet/btn-180

## Prompt

A dark #0f172a AI pill with a 1px inset #334155 ring, white 14px semibold "Auto-fix" text and an amber #fbbf24 inline magic-wand icon. On hover the wand flicks up and rotates -20 degrees with a springy easing, the ring turns amber and a soft amber glow appears; active #020617 with a deeper flick. Focus 2px amber outline.

## HTML

```html
<button class="btn-180"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M4 20L15 9M15 4v2M19 8h2M18 5l1-1M13 7l-1-1"/></svg>Auto-fix</button>
```

## CSS

```css
.btn-180 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 system-ui,sans-serif;
  color: #fff;
  background: #0f172a;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px 12px 18px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #334155;
  transition: background .2s,box-shadow .2s
}
.btn-180 svg {
  color: #fbbf24;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1)
}
.btn-180:hover {
  background: #1e293b;
  box-shadow: inset 0 0 0 1px #fbbf24,0 0 16px #fbbf2444
}
.btn-180:hover svg {
  transform: rotate(-20deg) translateY(-2px)
}
.btn-180:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px
}
.btn-180:active {
  background: #020617
}
.btn-180:active svg {
  transform: rotate(-30deg) scale(.9)
}
```
