# Diagonaler Wipe (B 060)

Kategorie: Buttons  
Tags: hover-fill, diagonal, skew, rectangle  
Seite: https://designforai.dev/de/snippet/btn-060

## Prompt

Ein weißer Button mit 2px fast schwarzem Rahmen #0f172a, 6px Radius, 12px mal 26px Padding, 14px semibold Text. Beim Hover fegt ein geneigtes (-20deg) dunkles Panel diagonal von links herein, seine Breite wächst in 300ms von 0 auf 170%, und der Text wird weiß. Active #1e293b. Fokus-Outline 2px Dunkel.

## HTML

```html
<button class="btn-060">Wipe</button>
```

## CSS

```css
.btn-060 {
  position: relative;
  overflow: hidden;
  font: 600 14px/1 system-ui,sans-serif;
  color: #0f172a;
  background: #fff;
  border: 2px solid #0f172a;
  border-radius: 6px;
  padding: 12px 26px;
  cursor: pointer;
  z-index: 0;
  transition: color .3s
}
.btn-060::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 0;
  height: 100%;
  background: #0f172a;
  transform: skewX(-20deg);
  transition: width .3s ease;
  z-index: -1
}
.btn-060:hover {
  color: #fff
}
.btn-060:hover::before {
  width: 170%
}
.btn-060:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 3px
}
.btn-060:active::before {
  background: #1e293b
}
```
