A scroll-driven card stack where images pin in place and scale down as you scroll, creating a satisfying layered depth effect.
pnpm dlx shadcn@latest add @componentry/sticky-scroll-cards
cards
Array of card objects. Each item requires a title (string) and src (image URL). Defaults to 5 Unsplash landscape photos.
StickyScrollCardItem[]
hint
Short hint label shown above the card stack before scrolling begins.
string
"scroll down to see card stack"
className
Additional CSS classes applied to the outer container.
View source
Keep in mind
Have any questions?
import { StickyScrollCards } from "@/components/ui/sticky-scroll-cards"
export default function Page() { return <StickyScrollCards /> }