Licht-Sweep Outline
Licht-Sweep Outline: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.btn-074 {
position: relative;
overflow: hidden;
font: 600 14px/1 system-ui,sans-serif;
color: #7c3aed;
background: #fff;
border: 2px solid #7c3aed;
border-radius: 8px;
padding: 12px 26px;
cursor: pointer;
z-index: 0
}
.btn-074::after {
content: "";
position: absolute;
top: 0;
left: -60%;
width: 40%;
height: 100%;
background: linear-gradient(110deg,transparent,rgba(124,58,237,.25),transparent);
transition: left .45s;
z-index: -1
}
.btn-074:hover::after {
left: 120%
}
.btn-074:focus-visible {
outline: 2px solid #7c3aed;
outline-offset: 3px
}
.btn-074:active {
background: #f5f3ff
}
HTML
<button class="btn-074">Sweep</button>Prompt
Ein violetter Outline-Button (2px Rahmen #7c3aed, violetter Text 14px semibold, weiße Füllung, 8px Radius, 12px mal 26px Padding). Beim Hover fegt ein halbtransparentes violettes Band (25%) in 450ms von links nach rechts durch das Innere. Active tönt die Füllung #f5f3ff. Fokus-Outline 2px Violett.