# Rise fill (B 058)

Category: Buttons  
Tags: hover-fill, slide-up, outline, square  
Page: https://designforai.dev/snippet/btn-058

## Prompt

A square-cornered outline button with a 2px navy #1e3a8a border, navy text at 14px semibold, white background, 12px by 24px padding. On hover a navy panel rises from the bottom edge to fill it (250ms) and the text turns white. Active #172554. Focus outline 2px navy.

## HTML

```html
<button class="btn-058">Rise</button>
```

## CSS

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