{
  "id": "offset-frame-button",
  "name": "Offset Frame Button",
  "category": "buttons",
  "tags": [
    "offset",
    "frame",
    "border",
    "hover",
    "editorial"
  ],
  "description": "A solid button with an offset outline frame that snaps into place on hover.",
  "url": "https://copy-css.com/snippets/offset-frame-button",
  "markdown": "https://copy-css.com/snippets/offset-frame-button.md",
  "html": "<button class=\"btn-frame\">Read more</button>",
  "css": ".btn-frame {\n  position: relative;\n  padding: 14px 30px;\n  border: 0;\n  background: #86198f;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-frame::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border: 2px solid #86198f;\n  transform: translate(7px, 7px);\n  transition: transform 0.2s ease;\n  pointer-events: none;\n}\n\n.btn-frame:hover::after {\n  transform: translate(0, 0);\n}",
  "features": [
    "transitions",
    "transforms"
  ],
  "customProperties": []
}
