Inset-Füllung Sweep

Inset-Füllung Sweep: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.

inset-filloutlinerectanglebox-shadowleft-to-right

CSS
.btn-146 {
  font: 600 14px/1 system-ui,sans-serif;
  color: #111827;
  background: transparent;
  border: 2px solid #111827;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #111827;
  transition: box-shadow .3s ease-out,color .3s
}
.btn-146:hover {
  box-shadow: inset 200px 0 0 0 #111827;
  color: #fff
}
.btn-146:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px
}
.btn-146:active {
  box-shadow: inset 200px 0 0 0 #000;
  border-color: #000
}
HTML
<button class="btn-146">Read more</button>
Prompt

Ein Outline-Button (transparent, 2px Rahmen #111827, 6px Radius, 14px semibold dunkler Text, 12px mal 24px Padding), der sich beim Hover von links füllt, über einen inset box-shadow, dessen horizontaler Spread von 0 auf 200px wächst, der Text wird weiß, 300ms ease-out. Active füllt reines Schwarz. Fokus 2px dunkle Outline mit 3px Offset.