# Text Roll Button

> On hover the label rolls up and a colored copy rolls in from below.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: hover, text, slide, roll, outline
- Live preview: https://copy-css.com/snippets/text-roll-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-roll"><span data-text="Let’s talk">Let’s talk</span></button>
```

## CSS

```css
.btn-roll {
  overflow: hidden;
  padding: 14px 30px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: 700 16px/1 system-ui, sans-serif;
  cursor: pointer;
}

.btn-roll span {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-roll span::after {
  content: attr(data-text);
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  color: #7c3aed;
}

.btn-roll:hover span {
  transform: translateY(calc(-100% - 20px));
}
```

## Notes

- This CSS Text Roll Button is 28 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses transitions and transforms.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
