01.18 · Scroll-Based

Section Wipe

Each section slides up over the one before. Best for full-screen stories.

Scroll it

Scroll inside the box, or press Play and it scrolls for you.

Each section stays put

Every section sticks to the top of the box, and the next one slides up over it, like a card landing on a pile.

The one below sinks back

As a section is covered it shrinks a little, so it seems to slip behind the one arriving.

It follows your scroll

Stop halfway and the wipe stops halfway. Scroll back up and the section slides away again.

The last one stays on top

Nothing covers the final section, so it never shrinks.

Try it

Change a setting, then scroll again or press Play.

Shrink

How far the section underneath sinks back.

More optionsFewer options

Shrink speed

Quick finishes shrinking early in the wipe.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a section wipe to [the full-screen sections of your page]. Make each section exactly one screen tall, stick each one to the top as the visitor scrolls, and stack them so every section sits above the one before; the next section then slides up and covers the current one instead of pushing it away. While a section is being covered, shrink its content in step with the scroll so it seems to sink behind the one arriving, unless the settings turn the shrink off. Nothing ever covers the last section. If the visitor has reduced motion turned on, keep the wipe but skip the shrink. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Full-screen stories
  • Landing pages
  • Case studies

Avoid on

  • Long text
  • Documentation