# Reveal Footer

> A footer that sits underneath the page and is uncovered as the content scrolls away, like lifting a curtain.

- Category: [CSS Layouts](https://copy-css.com/category/layouts)
- Tags: footer, curtain, parallax, position sticky, z-index
- Live preview: https://copy-css.com/snippets/reveal-footer
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="reveal-page">
  <main class="reveal-page-main">
    <h2>Keep scrolling</h2>
    <p>The footer is waiting underneath this page.</p>
  </main>
  <footer class="reveal-page-footer">Studio 2026</footer>
</div>
```

## CSS

```css
.reveal-page {
  font: 15px/1.5 system-ui, sans-serif;
}

/* The page slides over the footer */
.reveal-page-main {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 24px;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 16px 32px -16px #0f172a59;
}

.reveal-page-main h2 {
  margin: 0 0 8px;
  color: #0f172a;
}

/* Sticks to the bottom, behind the page, until the page scrolls past */
.reveal-page-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  place-items: center;
  min-height: 240px;
  background: #0f172a;
  color: #e2e8f0;
  font-weight: 600;
}
```

## Notes

- This CSS Reveal Footer is 33 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses box shadows, CSS Grid and sticky positioning.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
