Card Notification Stack
A loose pile of notifications that straightens and fans out from its centre into a readable list on hover or focus.
cardnotificationstackhoverspring
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/card-notification-stack.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/card-notification-stack.json"Manual install+
1. Install the dependencies.
$pnpm add lucide-react motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Card Notification Stack" component from PixelPapa UI to this project. What it is: A loose pile of notifications that straightens and fans out from its centre into a readable list on hover or focus. Category: Cards. Depends on: lucide-react, motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/card-notification-stack.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/card-notification-stack.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/card-notification-stack" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More cards
- Card 3D TiltA card that leans toward the pointer on springs, with a glare that tracks the cursor and layers floating at different depths.
- Card Border BeamA card with a comet of light travelling around its border, drawn with an animated conic gradient and a soft glow copy.
- Card Expandable DetailCompact rows that expand in place with a shared layout animation, pushing their neighbours aside on a spring.
- Card FlipA two-sided card that turns over on a spring when clicked or activated from the keyboard, on either axis.
- Card Glass FrostA frosted glass card with a lit top edge and fine grain, floating over slowly drifting colour blobs.
- Card Hover Reveal ActionsA media card whose artwork zooms on hover while quick actions spring in from the edge and a call to action rises from the footer.