{
  "id": "fill-button",
  "name": "Fill on Hover Button",
  "category": "buttons",
  "tags": [
    "outline",
    "hover",
    "pill",
    "animation"
  ],
  "description": "An outlined pill button that fills with color from left to right on hover.",
  "url": "https://copy-css.com/snippets/fill-button",
  "markdown": "https://copy-css.com/snippets/fill-button.md",
  "html": "<button class=\"btn-fill\">Hover me</button>",
  "css": ".btn-fill {\n  position: relative;\n  z-index: 0;\n  overflow: hidden;\n  padding: 14px 32px;\n  border: 2px solid #0284c7;\n  border-radius: 999px;\n  background: transparent;\n  color: #0284c7;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: color 0.3s ease;\n}\n\n.btn-fill::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: #0284c7;\n  transform: scaleX(0);\n  transform-origin: left;\n  transition: transform 0.3s ease;\n}\n\n.btn-fill:hover {\n  color: #fff;\n}\n\n.btn-fill:hover::before {\n  transform: scaleX(1);\n}",
  "features": [
    "transitions",
    "transforms"
  ],
  "customProperties": []
}
