Skip to content
All effects

Sticky footer reveal

At the end, the page lifts off and uncovers a footer that was waiting underneath.

Scroll

This is the real effect. Scroll or move your mouse inside the frame to try it.

The prompt

Add a sticky footer reveal to this website (at the end of the page the content lifts off and uncovers a fixed footer underneath, also called a curtain footer). Behaviour: the main content sits in a wrapper with a solid background, position relative and z-index 1. The footer gets position: fixed at the bottom of the viewport with z-index 0. Give the main wrapper a margin-bottom equal to the footer height (measure it with JavaScript on load and on resize), so at the end of the page the content slides up and reveals the footer behind it. Add a subtle parallax: while it is uncovered, the footer content moves up about 60px and fades from 30% to full opacity. Details: if the footer is taller than the screen (often on mobile), switch to a normal static footer. Keep the footer links reachable by keyboard and never hidden behind the content. Respect prefers-reduced-motion by dropping the parallax. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.

What it is

The footer does not scroll into view. It is already there, fixed behind the page. When you reach the end, the page lifts off like a sheet of paper and shows what is underneath.

When it works

A big closing statement, a contact call to action, your wordmark. The Living with Prompts site ends like this. It gives the end of a page a small moment, instead of just stopping.

Get it right

  • Measure the footer height with JavaScript, never guess it.
  • Fall back to a normal footer when it is taller than the screen.
  • Keep the footer links reachable by keyboard, never hidden behind the page.

Also called

  • Footer reveal
  • Curtain footer
  • Parallax footer
  • Uncovering footer

More effects.

All effects