{
  "id": "custom-cursor",
  "name": "Custom Cursor",
  "category": "effects",
  "tags": [
    "cursor",
    "svg cursor",
    "pointer",
    "crosshair",
    "hotspot",
    "portfolio"
  ],
  "description": "Swaps the mouse pointer for custom SVG cursors inside an area, with a different one over links and a safe fallback.",
  "url": "https://copy-css.com/snippets/custom-cursor",
  "markdown": "https://copy-css.com/snippets/custom-cursor.md",
  "html": "<div class=\"cursor-zone\">\n  <p>Move your mouse in here</p>\n  <a href=\"#\">and over this link</a>\n</div>",
  "css": ".cursor-zone {\n  display: grid;\n  place-content: center;\n  gap: 8px;\n  width: 260px;\n  height: 150px;\n  border: 2px dashed #d6d3d1;\n  border-radius: 16px;\n  background: #fff;\n  color: #57534e;\n  font: 500 14px system-ui, sans-serif;\n  text-align: center;\n  cursor: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%231c1917' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%23ea580c'/%3E%3C/svg%3E\") 16 16, crosshair;\n}\n\n.cursor-zone p {\n  margin: 0;\n}\n\n.cursor-zone a {\n  color: #ea580c;\n  font-weight: 700;\n  cursor: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23ea580c' fill-opacity='.85'/%3E%3Cpath d='M11 21 21 11M13 11h8v8' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") 16 16, pointer;\n}\n\n.cursor-zone a:focus-visible {\n  outline: 2px solid #ea580c;\n  outline-offset: 3px;\n  border-radius: 2px;\n}",
  "features": [
    "CSS Grid",
    "keyboard focus styles"
  ],
  "customProperties": []
}
