Stacking Cards Scroll Animation
Each card slides up over the last one, which shrinks back into a neat stack. Preview it, adjust the scroll length and smoothing, and copy the HTML, CSS and JavaScript.
When to use Stacking Cards
Use it for process steps, services or feature lists, where each card deserves a moment on its own.
Paste the HTML where the section should go, add the CSS to your stylesheet, and load the JavaScript once at the end of the page. This effect is a fresh build of the pattern from Olivier Larose Cards Parallax.
More scroll animations
- Gallery to Hero: A photo grid zooms in until the middle picture fills the screen and becomes the hero.
- Horizontal Gallery: The page pins and a row of pictures slides sideways as you keep scrolling down.
- Tilted Hero Rows: Rows of work start tilted back in 3D, then flatten and slide apart as the headline clears.
- Tilt-Up Screen: A product screenshot lies tilted back, then stands up flat to face the visitor.
- Sticky Story: Text steps scroll past on the left while the picture on the right swaps to match.
- Elastic Columns: Gallery columns scroll at different speeds, so the grid stretches and catches up.
- Zoom-Through Title: A giant word grows until you fly through a letter into the next scene.
Frequently Asked Questions
How many cards can I use?
The export has four. To add more, add another card with the next --i number and raise the 3 in the CSS to one less than your card count.