{
  "id": "sliced-text-hover",
  "name": "Sliced Text Hover",
  "category": "text",
  "tags": [
    "glitch",
    "slice",
    "clip-path",
    "split",
    "link"
  ],
  "description": "A word cut diagonally in two with clip-path, the halves sliding apart on hover or focus.",
  "url": "https://copy-css.com/snippets/sliced-text-hover",
  "markdown": "https://copy-css.com/snippets/sliced-text-hover.md",
  "html": "<a class=\"text-slice\" href=\"#\">\n  <span>SLICE</span>\n  <span aria-hidden=\"true\">SLICE</span>\n</a>",
  "css": ".text-slice {\n  display: inline-grid;\n  color: #18181b;\n  font: 900 52px/1 system-ui, sans-serif;\n  letter-spacing: 0.02em;\n  text-decoration: none;\n}\n\n.text-slice span {\n  grid-area: 1 / 1;\n  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), color 0.35s ease;\n}\n\n.text-slice span:first-child {\n  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 62%);\n}\n\n.text-slice span:last-child {\n  clip-path: polygon(0 62%, 100% 40%, 100% 100%, 0 100%);\n}\n\n.text-slice:hover span:first-child,\n.text-slice:focus-visible span:first-child {\n  transform: translate(-6px, -2px);\n}\n\n.text-slice:hover span:last-child,\n.text-slice:focus-visible span:last-child {\n  color: #e11d48;\n  transform: translate(6px, 2px);\n}\n\n.text-slice:focus-visible {\n  outline: 2px solid #18181b;\n  outline-offset: 8px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-slice span { transition: color 0.35s ease; }\n}",
  "features": [
    "transitions",
    "transforms",
    "clip paths",
    "CSS Grid",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
