{
  "id": "reveal-footer",
  "name": "Reveal Footer",
  "category": "layouts",
  "tags": [
    "footer",
    "curtain",
    "parallax",
    "position sticky",
    "z-index"
  ],
  "description": "A footer that sits underneath the page and is uncovered as the content scrolls away, like lifting a curtain.",
  "url": "https://copy-css.com/snippets/reveal-footer",
  "markdown": "https://copy-css.com/snippets/reveal-footer.md",
  "html": "<div class=\"reveal-page\">\n  <main class=\"reveal-page-main\">\n    <h2>Keep scrolling</h2>\n    <p>The footer is waiting underneath this page.</p>\n  </main>\n  <footer class=\"reveal-page-footer\">Studio 2026</footer>\n</div>",
  "css": ".reveal-page {\n  font: 15px/1.5 system-ui, sans-serif;\n}\n\n/* The page slides over the footer */\n.reveal-page-main {\n  position: relative;\n  z-index: 1;\n  box-sizing: border-box;\n  min-height: 100vh;\n  padding: 24px;\n  border-radius: 0 0 24px 24px;\n  background: #ffffff;\n  color: #334155;\n  box-shadow: 0 16px 32px -16px #0f172a59;\n}\n\n.reveal-page-main h2 {\n  margin: 0 0 8px;\n  color: #0f172a;\n}\n\n/* Sticks to the bottom, behind the page, until the page scrolls past */\n.reveal-page-footer {\n  position: sticky;\n  bottom: 0;\n  display: grid;\n  place-items: center;\n  min-height: 240px;\n  background: #0f172a;\n  color: #e2e8f0;\n  font-weight: 600;\n}",
  "features": [
    "box shadows",
    "CSS Grid",
    "sticky positioning"
  ],
  "customProperties": []
}
