Kinetic UI
Back to Introduction
Interaction Physics

Sticky Stacking Cards

Cards that stack on top of each other with a 3D depth scaling effect on scroll.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add sticky-stacking-cards

The StickyStackingCards component calculates dynamic op spacing and exponential scale reductions as the user scrolls, creating an incredibly satisfying deck-stacking illusion.

Live Preview

sticky-stacking-cards
Card 1
Card 2
Card 3

Installation

npx kinetic-ui-cli@latest add
PropTypeDefaultDescription

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { StickyStackingCards } from "@/components/creative/sticky-stacking-cards";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { StickyStackingCards } from "@/components/creative/sticky-stacking-cards";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <StickyStackingCards
      >
        <div>Content goes here</div>
      </StickyStackingCards>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.