{
  "id": "zoom-on-hover",
  "name": "Zoom on Hover",
  "category": "effects",
  "tags": [
    "image",
    "zoom",
    "hover",
    "scale",
    "gallery"
  ],
  "description": "Smoothly zooms an image inside its frame on hover without changing the layout.",
  "url": "https://copy-css.com/snippets/zoom-on-hover",
  "markdown": "https://copy-css.com/snippets/zoom-on-hover.md",
  "html": "<div class=\"zoom-frame\">\n  <img alt=\"Sun over blue hills\" width=\"220\" height=\"150\" src=\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 22 15%27%3E%3Crect width=%2722%27 height=%2715%27 fill=%27%236366f1%27/%3E%3Ccircle cx=%277%27 cy=%275%27 r=%273%27 fill=%27%23fde047%27/%3E%3Cpath d=%27M0 15 8 8l5 4 4-3 5 6z%27 fill=%27%230ea5e9%27/%3E%3C/svg%3E\">\n</div>",
  "css": ".zoom-frame {\n  overflow: hidden;\n  border-radius: 14px;\n}\n\n.zoom-frame img {\n  display: block;\n  width: 100%;\n  height: auto;\n  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n\n.zoom-frame:hover img {\n  transform: scale(1.08);\n}",
  "features": [
    "transitions",
    "transforms"
  ],
  "customProperties": []
}
