# Durchstreichen und ersetzen (B 119)

Kategorie: Buttons  
Tags: text-swap, strikethrough, rectangle, price, reveal  
Seite: https://designforai.dev/de/snippet/btn-119

## Prompt

Ein grüner #16a34a Button, 8px Radius, weißer Text 15px semibold, 13px mal 22px Padding, zeigt "$29 Upgrade" mit dem Preis in Blassgrün #bbf7d0. Beim Hover streicht eine weiße 2px Linie den alten Preis von links nach rechts durch (300ms) und ein fettes "$19" klappt daneben auf; Hintergrund #15803d. Active #166534. Fokus 2px grüne Outline mit 3px Offset.

## HTML

```html
<button class="btn-119"><s>$29</s><b>$19</b>Upgrade</button>
```

## CSS

```css
.btn-119 {
  font: 600 15px/1 system-ui,sans-serif;
  color: #fff;
  background: #16a34a;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: background .2s
}
.btn-119 s {
  color: #bbf7d0;
  text-decoration: none;
  position: relative
}
.btn-119 s::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  top: 50%;
  height: 2px;
  background: #fff;
  transition: right .3s
}
.btn-119 b {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .3s,opacity .3s;
  font-weight: 800
}
.btn-119:hover s::after {
  right: 0
}
.btn-119:hover b {
  max-width: 60px;
  opacity: 1
}
.btn-119:hover {
  background: #15803d
}
.btn-119:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 3px
}
.btn-119:active {
  background: #166534
}
```
