animbits

Linear Carousel

Galleries 133

About

A smooth-scrolling horizontal 3D card carousel with infinite loop, drag-to-scroll, autoplay, and shared-element card expansion inspired by Linear.

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

Code

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

Usage.tsx

import { Carousel, Card } from "@/components/ui/specials-linear-carousel";

const images = [
  {
    src: "https://cdn.21st.dev/assets/mirror/46/4640404badd4692a0956c124cad3f90ab4a01acb804c038caddddea9a98040f6.jpg",
    title: "Mountain Views",
    category: "Nature",
    content: (
      <p className="text-neutral-500">
        Breathtaking mountain landscapes from around the world.
      </p>
    ),
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/d0/d04cde6d6c11fae1caf86bf46e1ad92a26359da51787c6816d65ea328a6bb5b6.jpg",
    title: "Ocean Blue",
    category: "Nature",
    content: <p className="text-neutral-500">Calm and serene ocean views.</p>,
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/43/43a3af0c82593e850e9effa52335cd95ded0190f26efd68f24c7e37a38e28d57.jpg",
    title: "Forest Pathways",
    category: "Nature",
    content: (
      <p className="text-neutral-500">
        Mysterious paths through dense forests.
      </p>
    ),
  },
  {
    src: "https://cdn.21st.dev/assets/mirror/a2/a22bbbfe8bc239d8b456887dda7b9f733a81752830a3184dbbee181b5b71a2f9.jpg",
    title: "Solitude",
    category: "Nature",
    content: (
      <p className="text-neutral-500">
        Finding peace in the vastness of nature.
      </p>
    ),
  },
];

export default function LinearCarouselDemo() {
  const cards = images.map((card, index) => (
    <Card key={card.src} card={card} index={index} />
  ));

  return (
    <div className="w-full h-full py-20">
      <Carousel items={cards} />
    </div>
  );
}

Dependencies

More by animbits

View all
  • Dia Text

    Dia Text

    149
  • Gooey Blobs Loader

    Gooey Blobs Loader

    143
  • Skeleton Loader

    Skeleton Loader

    106
  • Word Carousel Text

    Word Carousel Text

    97
  • Image Text

    Image Text

    73
  • Text Highlight

    Text Highlight

    68
  • Morphing Loader

    Morphing Loader

    53
  • SVG Text Draw

    SVG Text Draw

    49

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    43
  • Animated Gallery

    Animated Gallery

    1.4K
  • Hero Section 6

    Hero Section 6

    881
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Layout Grid

    Layout Grid

    826
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    981
  • Image Gallery

    Image Gallery

    90
  • File Upload

    File Upload

    18