{
  "id": "isometric-button",
  "name": "Isometric Button",
  "category": "buttons",
  "tags": [
    "3d",
    "extrude",
    "skew",
    "depth",
    "press"
  ],
  "description": "An isometric block button with skewed side faces that pushes into the page when clicked.",
  "url": "https://copy-css.com/snippets/isometric-button",
  "markdown": "https://copy-css.com/snippets/isometric-button.md",
  "html": "<button class=\"btn-iso\">Build it</button>",
  "css": ".btn-iso {\n  --depth: 8px;\n  position: relative;\n  padding: 15px 34px;\n  border: 0;\n  background: #f59e0b;\n  color: #1c1917;\n  font: 800 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: transform 0.12s ease;\n}\n\n/* Bottom face */\n.btn-iso::before {\n  content: \"\";\n  position: absolute;\n  top: 100%;\n  left: 0;\n  width: 100%;\n  height: var(--depth);\n  background: #b45309;\n  transform: skewX(45deg);\n  transform-origin: top;\n  transition: height 0.12s ease;\n}\n\n/* Right face */\n.btn-iso::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 100%;\n  width: var(--depth);\n  height: 100%;\n  background: #d97706;\n  transform: skewY(45deg);\n  transform-origin: left;\n  transition: width 0.12s ease;\n}\n\n.btn-iso:active {\n  transform: translate(var(--depth), var(--depth));\n}\n\n.btn-iso:active::before {\n  height: 0;\n}\n\n.btn-iso:active::after {\n  width: 0;\n}\n\n.btn-iso:focus-visible {\n  outline: 3px solid #1c1917;\n  outline-offset: 14px;\n}",
  "features": [
    "transitions",
    "transforms",
    "keyboard focus styles",
    "custom properties"
  ],
  "customProperties": [
    {
      "name": "--depth",
      "value": "8px"
    }
  ]
}
