Saurabh

Cylinder Carousel

Component 12

About

A drag, scroll or arrow-key carousel whose items line the inside (or outside) of a cylinder, receding toward the center and growing toward the edges with a springy glide and snap.

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

Code

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

Usage.tsx

"use client";

import { CylinderCarousel } from "@/components/ui/cylinder-carousel";

const GRADIENTS = [
  "from-violet-500 to-fuchsia-500",
  "from-amber-400 to-orange-500",
  "from-emerald-400 to-teal-500",
  "from-sky-400 to-blue-500",
  "from-rose-400 to-pink-500",
  "from-lime-400 to-green-500",
  "from-indigo-400 to-purple-500",
];

export default function CylinderCarouselDemo() {
  return (
    <div className="flex min-h-[420px] w-full items-center justify-center bg-background p-8">
      <CylinderCarousel
        itemSize={220}
        height={260}
        className="w-full max-w-3xl"
      >
        {GRADIENTS.map((gradient) => (
          <div
            key={gradient}
            className={`h-full w-full rounded-full bg-gradient-to-br ${gradient}`}
          />
        ))}
      </CylinderCarousel>
    </div>
  );
}

Dependencies

More by Saurabh

View all
  • BeUI Tilt Card

    BeUI Tilt Card

    369
  • BeUI Expandable Tabs

    BeUI Expandable Tabs

    345
  • BeUI File Upload

    BeUI File Upload

    293
  • BeUI Bouncy Accordion

    BeUI Bouncy Accordion

    200
  • BeUI Create Menu

    BeUI Create Menu

    199
  • BeUI Expanable Action Bar

    BeUI Expanable Action Bar

    184
  • Loader

    Loader

    173
  • BeUI 404 / Not Found

    BeUI 404 / Not Found

    166