Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationCard Stack

Card Stack

An interactive card stack component that displays cards with hover effects. Features smooth animations where non-hovered cards blur and scale down while the hovered card scales up and stays sharp.

Install Dependencies

npx
quickcode-ui add CardStack

Default Usage

Default Card Stack

Curious Cat

Curious Cat

Always exploring

Chill Cat

Chill Cat

Cool and calm

Playful Cat

Playful Cat

Full of energy

Props

PropTypeDefaultDescription
cardsCardItem[]-Required. Array of card objects with title, subtitle, image, and color
classNamestring-Additional CSS classes to apply to the container

CardItem Interface

PropertyTypeDescription
idstring | numberOptional unique identifier for the card
titlestringRequired. Main heading text
subtitlestringRequired. Secondary description text
imagestringRequired. Image URL for the card background
colorstringRequired. Background color class (e.g., “bg-rose-500”)

Features

  • Interactive Hover Effects: Cards blur and scale down when hovering over siblings, while the hovered card scales up
  • Background Images: Each card supports a background image with overlay effects
  • Smooth Animations: Powered by CSS transitions for fluid scaling and blur effects
  • Flexible Styling: Customizable background colors and overlay effects
  • Responsive Design: Works well across different screen sizes
  • Theme Independent: Uses fixed white text that works well over images with dark overlay

Perfect for showcasing featured content, team members, or any collection of items that benefit from an engaging hover interaction.

Last updated on