# Rollladen von oben (B 062)

Kategorie: Buttons  
Tags: hover-fill, slide-down, solid, dark  
Seite: https://designforai.dev/de/snippet/btn-062

## Prompt

Ein dunkler #18181b Button mit weißem Text 14px semibold, 8px Radius, 12px mal 26px Padding. Beim Hover fällt ein gelbes #facc15 Panel von der Oberkante herab (250ms), deckt den Button ab und der Text wird dunkel. Active #eab308. Fokus-Outline 2px Gelb.

## 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
}
```
