# Light sweep outline (B 074)

Category: Buttons  
Tags: shine, sheen, outline, border-sweep  
Page: https://designforai.dev/snippet/btn-074

## Prompt

A violet outline button (2px #7c3aed border, violet 14px semibold text, white fill, 8px radius, 12px by 26px padding). On hover a translucent violet band (25%) sweeps across the interior from left to right in 450ms. Active tints the fill #f5f3ff. Focus outline 2px violet.

## HTML

```html
<button class="btn-074">Sweep</button>
```

## CSS

```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
}
```
