{
  "id": "skewed-button",
  "name": "Skewed Button",
  "category": "buttons",
  "tags": [
    "parallelogram",
    "slanted",
    "sporty",
    "uppercase",
    "hover"
  ],
  "description": "A sporty slanted button that straightens out and changes color on hover, with upright text.",
  "url": "https://copy-css.com/snippets/skewed-button",
  "markdown": "https://copy-css.com/snippets/skewed-button.md",
  "html": "<button class=\"btn-skew\">Play now</button>",
  "css": ".btn-skew {\n  position: relative;\n  isolation: isolate;\n  padding: 15px 36px;\n  border: 0;\n  background: transparent;\n  color: #fff;\n  font: 800 15px/1 system-ui, sans-serif;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  cursor: pointer;\n}\n\n/* Only the background is skewed, so the text stays upright */\n.btn-skew::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: #0f172a;\n  transform: skewX(-16deg);\n  transition: transform 0.25s ease, background-color 0.25s ease;\n}\n\n.btn-skew:hover::before {\n  background: #2563eb;\n  transform: skewX(0);\n}\n\n.btn-skew:focus-visible {\n  outline: 3px solid #2563eb;\n  outline-offset: 4px;\n}",
  "features": [
    "transitions",
    "transforms",
    "keyboard focus styles"
  ],
  "customProperties": []
}
