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.
Inside, each small frame is the box with one section: it rises into its frame, sticks there, and the next lands on top while it shrinks. Scroll the box or press Play to watch.
In Scrolls away the sections follow each other off the top; in Slides over each one stays put while the next slides up over it. Scroll the box or press Play to watch.
Try it
Change a setting, then scroll again or press Play.
Shrink
How far the section underneath sinks back.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.