Manu Arora

Card Stack

Testimonials 198

About

Cards stack on top of each other after some interval. Perfect for showing testimonials.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Card Stack to your project and fits it to your theme.

Code

How Card Stack is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import { CardStack } from "@/components/ui/card-stack";
import { cn } from "@/lib/utils";
export function CardStackDemo() {
  return (
    <div className="h-[40rem] flex items-center justify-center w-full">
      <CardStack items={CARDS} />
    </div>
  );
}

// Small utility to highlight the content of specific section of a testimonial content
export const Highlight = ({
  children,
  className,
}: {
  children: React.ReactNode;
  className?: string;
}) => {
  return (
    <span
      className={cn(
        "font-bold bg-emerald-100 text-emerald-700 dark:bg-emerald-700/[0.2] dark:text-emerald-500 px-1 py-0.5",
        className
      )}
    >
      {children}
    </span>
  );
};

const CARDS = [
  {
    id: 0,
    name: "Manu Arora",
    designation: "Senior Software Engineer",
    content: (
      <p>
        These cards are amazing, <Highlight>I want to use them</Highlight> in my
        project. Framer motion is a godsend ngl tbh fam 🙏
      </p>
    ),
  },
  {
    id: 1,
    name: "Elon Musk",
    designation: "Senior Shitposter",
    content: (
      <p>
        I dont like this Twitter thing,{" "}
        <Highlight>deleting it right away</Highlight> because yolo. Instead, I
        would like to call it <Highlight>X.com</Highlight> so that it can easily
        be confused with adult sites.
      </p>
    ),
  },
  {
    id: 2,
    name: "Tyler Durden",
    designation: "Manager Project Mayhem",
    content: (
      <p>
        The first rule of
        <Highlight>Fight Club</Highlight> is that you do not talk about fight
        club. The second rule of
        <Highlight>Fight club</Highlight> is that you DO NOT TALK about fight
        club.
      </p>
    ),
  },
];

Dependencies

More by Manu Arora

View all
  • Container Scroll Animation

    Container Scroll Animation

    10.3K
  • Aurora Background

    Aurora Background

    4.5K
  • Glowing Effect

    Glowing Effect

    4.5K
  • Timeline

    Timeline

    4.4K
  • Sparkles

    Sparkles

    4.2K
  • Lamp

    Lamp

    3.7K
  • Sidebar

    Sidebar

    3.7K
  • Bento Grid

    Bento Grid

    2.8K

More in Testimonials

View all
  • Testimonial

    Testimonial

    121
  • Staggered Testimonials Grid

    Staggered Testimonials Grid

    150
  • testimonial

    testimonial

    826
  • Testimonials Section

    Testimonials Section

    159
  • Testimonials

    Testimonials

    247
  • Testimonial 2

    Testimonial 2

    33
  • Card Studio

    Card Studio

    15
  • Testimonial Card

    Testimonial Card

    71