← Back to Home

card stack

An interactive card stack component with smooth animations. Cards can be tossed away or returned to the stack with realistic physics. Perfect for testimonials, product showcases, or any content that benefits from a tactile card-flipping experience.

Installation

npm install @thomarket/card-stack

Usage Example

import CardStack from '@thomarket/card-stack';

// Basic testimonial mode (default)
<CardStack type="testimonial" />

// Product mode with infinite loop
<CardStack type="product" infinite={true} />

// Finite mode (cards get tossed away)
<CardStack type="testimonial" infinite={false} />

// With custom cards
const customTestimonials = [
  {
    id: 1,
    name: "john doe",
    role: "frontend developer",
    content: "Amazing component with smooth animations!",
    company: "tech corp"
  },
  // ... more cards
];

<CardStack 
  cards={customTestimonials}
  type="testimonial"
  infinite={true}
  className="my-custom-styles"
/>

// Custom product cards
const customProducts = [
  {
    id: 1,
    name: "starter pack",
    description: "perfect for beginners",
    features: ["basic templates", "email support", "documentation"],
    price: "free"
  },
  // ... more cards
];

<CardStack 
  cards={customProducts}
  type="product"
  infinite={false}
  className="w-full max-w-md mx-auto"
/>

Live Demo

this completely changed how we think about user experience. the attention to detail is remarkable.

alex chen

product designer

stripe

beautifully crafted with purpose. every interaction feels intentional and thoughtful.

sarah kim

creative director

figma

elegant solutions that just work. the developer experience is as polished as the user interface.

mike torres

engineer

vercel

minimalist perfection. proves that great design is about what you leave out, not what you add.

emma davis

design lead

linear

testimonial mode • infinite loop

← return to stack • toss away →

creative suite

tools for modern makers

free
component library
design tokens
interactive demos

pro toolkit

advanced workflows

$29/mo
custom themes
export options
team collaboration

enterprise

scale with confidence

custom
white-label
custom integrations
dedicated support

developer api

build anything

usage based
rest endpoints
webhooks
real-time updates

product mode • finite stack

cards get tossed away permanently