# Top-down shutter (B 062)

Category: Buttons  
Tags: hover-fill, slide-down, solid, dark  
Page: https://designforai.dev/snippet/btn-062

## Prompt

A solid dark #18181b button with white 14px semibold text, 8px radius, 12px by 26px padding. On hover a yellow #facc15 panel drops in from the top edge (250ms) covering the button while the text turns dark. Active #eab308. Focus outline 2px yellow.

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