{
  "id": "paper-stack-shadow",
  "name": "Paper Stack",
  "category": "shadows",
  "tags": [
    "stack",
    "paper",
    "layers",
    "pseudo-element",
    "depth"
  ],
  "description": "A sheet with two slightly rotated pages peeking out from behind it.",
  "url": "https://copy-css.com/snippets/paper-stack-shadow",
  "markdown": "https://copy-css.com/snippets/paper-stack-shadow.md",
  "html": "<div class=\"paper-stack\"></div>",
  "css": "/* Tip: give the parent `isolation: isolate` so the pseudo-element shadows stay visible */\n.paper-stack {\n  position: relative;\n  border-radius: 6px;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.paper-stack::before,\n.paper-stack::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  border-radius: 6px;\n  background: #fafafa;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.paper-stack::before {\n  transform: rotate(-4deg);\n}\n\n.paper-stack::after {\n  transform: rotate(3deg) translate(4px, 2px);\n}",
  "features": [
    "transforms",
    "box shadows"
  ],
  "customProperties": []
}
