JST --:--:--
  1. Toolkit
  2. Components

Sticky scroll stacking cards for portfolio websites

Free React component · Scroll Stacking Cards

Sticky scroll stacking cards for a portfolio or project showcase. As you scroll, each card rises from below, leaning toward you and out of focus, then flattens and sharpens as it lands in the centre, while the cards beneath sink back and peek out above like a deck. Every card shows a whole website edge to edge, with its name and link set into a cut-out corner, one click from the live site. Pinned, spring-smoothed and 60fps, with a reduced motion fallback. Pass your own projects and screenshots.

Install

npx shadcn@latest add "https://21st.dev/r/aakashmehra/scroll-stacking-cards?api_key=$API_KEY_21ST"

Run it in a React project set up for shadcn/ui. It needs a free 21st.dev API key, or copy the code from the component's page on 21st.dev.

Overview

Built with
React · Tailwind CSS · Motion · Lucide
npm packages
motion, lucide-react
Price
Free and open source (MIT licence)

Questions

Is the Scroll Stacking Cards free?

Yes. It's free and open source under the MIT licence, so you can use it in personal and commercial projects.

How do I add the Scroll Stacking Cards to my project?

In a React project set up for shadcn/ui, run the install command on this page with your 21st.dev API key. You can also open it on 21st.dev and copy the code.

What does the Scroll Stacking Cards need?

React and Tailwind CSS, plus motion and lucide-react from npm.

More components

Want something like this on your site?

I design and build websites with interactions like this one, from the first idea to launch.