# Persiana descendente (B 062)

Categoría: Botones  
Etiquetas: hover-fill, slide-down, solid, dark  
Página: https://designforai.dev/es/snippet/btn-062

## Prompt

Un botón oscuro sólido #18181b con texto blanco de 14px semibold, radio de 8px, padding de 12px por 26px. Al pasar el cursor un panel amarillo #facc15 cae desde el borde superior (250ms) cubriendo el botón mientras el texto se vuelve oscuro. Active #eab308. Outline de foco de 2px amarillo.

## HTML

```html
<button class="btn-062">Shutter</button>
```

## CSS

```css
.btn-062 {
  position: relative;
  overflow: hidden;
  font: 600 14px/1 system-ui,sans-serif;
  color: #fff;
  background: #18181b;
  border: 0;
  border-radius: 8px;
  padding: 12px 26px;
  cursor: pointer;
  z-index: 0;
  transition: color .25s
}
.btn-062::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #facc15;
  transform: translateY(-101%);
  transition: transform .25s;
  z-index: -1
}
.btn-062:hover {
  color: #18181b
}
.btn-062:hover::before {
  transform: translateY(0)
}
.btn-062:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 3px
}
.btn-062:active::before {
  background: #eab308
}
```
