{
  "id": "perspective-shadow",
  "name": "Perspective Cast Shadow",
  "category": "shadows",
  "tags": [
    "cast shadow",
    "skew",
    "floor",
    "pseudo-element",
    "product"
  ],
  "description": "A shadow cast across the floor behind an object, made by skewing a blurred pseudo-element.",
  "url": "https://copy-css.com/snippets/perspective-shadow",
  "markdown": "https://copy-css.com/snippets/perspective-shadow.md",
  "html": "<div class=\"shadow-cast\"></div>",
  "css": "/* Give the parent isolation: isolate if the shadow hides behind its background */\n.shadow-cast {\n  position: relative;\n  width: 100px;\n  height: 130px;\n  border-radius: 14px;\n  background: linear-gradient(160deg, #fde68a, #f59e0b);\n}\n\n.shadow-cast::after {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  inset: 0;\n  border-radius: 14px;\n  background: #451a03;\n  opacity: 0.35;\n  filter: blur(6px);\n  transform-origin: bottom;\n  transform: skewX(-50deg) scaleY(0.45);\n}",
  "features": [
    "transforms",
    "linear gradients",
    "filters"
  ],
  "customProperties": []
}
