01.06 · Scroll-Based
Stacking Cards
Cards stick at the top and pile into a deck. Best for step-by-step stories.
Scroll it
Scroll inside the box, or press Play and it scrolls for you.
Inside, the dashed lines mark where each card stops, a strip lower than the last, and faint outlines show each covered card's full size. Scroll the box or press Play to watch.
In Scroll past, cards go by like a plain list; in Stack up, each sticks at the top and the next slides over it, leaving a strip. Scroll the box or press Play to watch.
Try it
Change a setting, then scroll again or press Play.
Edge that shows
The strip of each card left showing above the next.
How much cards shrink
Covered cards shrink so the deck looks deep.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add stacking cards to [your set of project or step cards]. Make each card stick to the top of the scrolling area so the next card slides up over it, and push each later card down by the offset in the settings so a strip of the cards underneath stays visible, like a deck. As a card is covered, shrink it slightly from its top edge, so buried cards look farther away. Leave some room after the last card so the finished deck stays on screen. Use scroll-driven animations where the browser supports them, with a small script as the fallback. If the visitor has reduced motion turned on, let the cards stack without shrinking. 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.