{
  "id": "hover-depth-shadow",
  "name": "Hover Depth Shadow",
  "category": "shadows",
  "tags": [
    "hover",
    "transition",
    "elevation",
    "performance",
    "opacity"
  ],
  "description": "Fades in a deep shadow on hover with opacity, which animates more smoothly than box-shadow.",
  "url": "https://copy-css.com/snippets/hover-depth-shadow",
  "markdown": "https://copy-css.com/snippets/hover-depth-shadow.md",
  "html": "<div class=\"depth-hover\"></div>",
  "css": ".depth-hover {\n  position: relative;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);\n  transition: transform 0.25s ease;\n}\n\n/* The big shadow lives on a pseudo-element and only its opacity animates */\n.depth-hover::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: inherit;\n  box-shadow: 0 22px 40px -12px rgba(15, 23, 42, 0.35);\n  opacity: 0;\n  transition: opacity 0.25s ease;\n}\n\n.depth-hover:hover {\n  transform: translateY(-4px);\n}\n\n.depth-hover:hover::after {\n  opacity: 1;\n}",
  "features": [
    "transitions",
    "transforms",
    "box shadows"
  ],
  "customProperties": []
}
