Ravi Katiyar

Photo Stack

Galleries 249

About

Animated Photo Stack A playful, layered card component that displays team or profile photos in a stacked, draggable style with smooth animations. Perfect for showcasing creative teams, communities, or social highlights in an engaging way.

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

Code

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

Usage.tsx

import {
  InteractivePhotoStack,
  PhotoStackItem,
} from "@/components/ui/photo-stack";

// Sample data for the demo, matching the new PhotoStackItem interface
const showcaseItems: PhotoStackItem[] = [
  {
    src: "https://cdn.21st.dev/assets/mirror/e4/e4aa6feebdf90e8f95fd1b23df1134252323f1a8431bacf6cce347a6872a36b1.jpg",
    name: "Alexandre",
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/69/692aaa4baf3ba986e5c0b072133ecaac13933a3b1c6a99c78bea3d8a47f9dee8.jpg",
    name: "Isabella",
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/b2/b226346ec34fe24bbe9082488ff7f2c84d7150de914648cac41eeabe17579811.jpg",
    name: "Sophia",
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/e8/e87dd9c3d7e7c987901cef2bcca30db0157a1b51824e8628ccbfb27637ab9902.jpg",
    name: "Mia",
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/fb/fb1f483387b6207cca218e17983266d323e2c4b77cdfb689a697e465e659ad96.jpg",
    name: "Charlotte",
  },
];

// Demo component to showcase the photo stack
export default function InteractivePhotoStackDemo() {
  return (
    <div className="flex h-full min-h-[45rem] w-full items-center justify-center bg-background p-8">
      <InteractivePhotoStack
        items={showcaseItems}
        title={
          <>
            Our Creative Team
          </>
        }
      />
    </div>
  );
}

More by Ravi Katiyar

View all
  • Animated Shader Hero

    Animated Shader Hero

    3.7K
  • Hero

    Hero

    3.1K
  • Circular Gallery

    Circular Gallery

    2.8K
  • Minimalist Hero

    Minimalist Hero

    2.6K
  • Floating Icons Hero Section

    Floating Icons Hero Section

    1.9K
  • Glass Calendar

    Glass Calendar

    1.8K
  • Feature Carousel

    Feature Carousel

    1.7K
  • AI Image Generator Hero

    AI Image Generator Hero

    1.4K

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    61
  • Animated Gallery

    Animated Gallery

    1.5K
  • Image Gallery

    Image Gallery

    1.3K
  • Editorial Collage Hero

    Editorial Collage Hero

    456
  • Elastic Gallery

    Elastic Gallery

    949
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    1K
  • Img Sphere

    Img Sphere

    2.1K
  • Gallery Grid Skeleton

    Gallery Grid Skeleton

    36