The StickyStackingCards component calculates dynamic op spacing and exponential scale reductions as the user scrolls, creating an incredibly satisfying deck-stacking illusion.
Live Preview
Installation
npx kinetic-ui-cli@latest add | Prop | Type | Default | Description |
|---|
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>
);
}