Diagonal wipe
Diagonal wipe: a CSS button. Copy the rules, or the prompt that rebuilds it.
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
}
HTML
<button class="btn-060">Wipe</button>Prompt
A white button with a 2px near-black #0f172a border, 6px radius, 12px by 26px padding, 14px semibold text. On hover a skewed (-20deg) dark panel sweeps in diagonally from the left, its width growing from 0 to 170% over 300ms, and the text becomes white. Active #1e293b. Focus outline 2px dark.