{
  "id": "text-roll-button",
  "name": "Text Roll Button",
  "category": "buttons",
  "tags": [
    "hover",
    "text",
    "slide",
    "roll",
    "outline"
  ],
  "description": "On hover the label rolls up and a colored copy rolls in from below.",
  "url": "https://copy-css.com/snippets/text-roll-button",
  "markdown": "https://copy-css.com/snippets/text-roll-button.md",
  "html": "<button class=\"btn-roll\"><span data-text=\"Let’s talk\">Let’s talk</span></button>",
  "css": ".btn-roll {\n  overflow: hidden;\n  padding: 14px 30px;\n  border: 2px solid #111;\n  border-radius: 10px;\n  background: #fff;\n  color: #111;\n  font: 700 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-roll span {\n  position: relative;\n  display: inline-block;\n  transition: transform 0.3s ease;\n}\n\n.btn-roll span::after {\n  content: attr(data-text);\n  position: absolute;\n  top: calc(100% + 20px);\n  left: 0;\n  color: #7c3aed;\n}\n\n.btn-roll:hover span {\n  transform: translateY(calc(-100% - 20px));\n}",
  "features": [
    "transitions",
    "transforms"
  ],
  "customProperties": []
}
