{
  "id": "bottom-sheet-menu",
  "name": "Bottom Sheet Menu",
  "category": "navigation",
  "tags": [
    "mobile menu",
    "sheet",
    "details",
    "backdrop",
    "thumb friendly"
  ],
  "description": "A mobile menu that slides up from the bottom of the screen as a sheet with a dimmed backdrop.",
  "url": "https://copy-css.com/snippets/bottom-sheet-menu",
  "markdown": "https://copy-css.com/snippets/bottom-sheet-menu.md",
  "html": "<details class=\"sheet-menu\">\n  <summary>Menu</summary>\n  <nav aria-label=\"Main\">\n    <a href=\"#\">Home</a>\n    <a href=\"#\">Orders</a>\n    <a href=\"#\">Saved</a>\n    <a href=\"#\">Account</a>\n  </nav>\n</details>",
  "css": ".sheet-menu summary {\n  position: relative;\n  z-index: 11;\n  padding: 10px 20px;\n  border-radius: 999px;\n  background: #0f172a;\n  color: #ffffff;\n  font: 600 14px system-ui, sans-serif;\n  list-style: none;\n  cursor: pointer;\n}\n\n.sheet-menu summary::-webkit-details-marker {\n  display: none;\n}\n\n.sheet-menu summary:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 3px;\n}\n\n/* The huge spread shadow doubles as the backdrop */\n.sheet-menu nav {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 10;\n  display: grid;\n  gap: 2px;\n  padding: 28px 16px 20px;\n  border-radius: 20px 20px 0 0;\n  background: #ffffff;\n  box-shadow: 0 0 0 100vmax #0f172a66;\n  animation: sheet-menu-up 0.35s cubic-bezier(0.3, 0.7, 0.4, 1);\n}\n\n/* Grab handle */\n.sheet-menu nav::before {\n  content: \"\";\n  position: absolute;\n  top: 10px;\n  left: 50%;\n  width: 40px;\n  height: 4px;\n  margin-left: -20px;\n  border-radius: 4px;\n  background: #cbd5e1;\n}\n\n.sheet-menu nav a {\n  padding: 12px 14px;\n  border-radius: 10px;\n  color: #0f172a;\n  font: 500 16px system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.sheet-menu nav a:hover {\n  background: #f1f5f9;\n}\n\n.sheet-menu nav a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: -2px;\n}\n\n@keyframes sheet-menu-up {\n  from { transform: translateY(100%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .sheet-menu nav { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "box shadows",
    "CSS Grid",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
