# Marketing Gallery: Carousel Gallery

A swipeable carousel that steps through images one at a time. Use it to feature product shots or photos in a compact space on any landing page.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/carousel-gallery
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/carousel-gallery.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-gallery-carousel-gallery
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-gallery-carousel-gallery.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing/gallery/carousel-gallery`

## About this block

Carousel Gallery is a single image viewer with thumbnail navigation. A
wide aspect ratio frame holds one image at a time, sliding left or right
as the user steps through the set. Left and right arrow buttons sit on
either edge of the frame, and a translucent caption bar runs across the
bottom of the active image. Below the frame a horizontal row of small
square thumbnails shows the full set at once, with the active frame
highlighted by a ring so the viewer always knows where they are.

The images array, the autoplay interval, and the thumbnail row are all
independent. You can swap in your own photos, adjust how long each slide
lingers before advancing, or turn the thumbnail strip off entirely. The
block also responds to keyboard arrow keys, so no extra wiring is needed
for accessible navigation.

## When to use

Reach for this block when you need to show a curated set of visuals in a
compact footprint. It works well on a fintech or banking product page where
you want to walk visitors through screenshots, feature highlights, or
onboarding flows one step at a time without overwhelming them with a grid.
The thumbnail strip gives viewers a sense of how many images are in the set
and lets them jump directly to any frame, which suits structured sequences
better than an autoplay reel with no controls.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to introduce the
  product before the visual tour begins
- A [feature section](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) that names the
  capabilities the carousel will illustrate

**After**

- [Testimonials](https://www.shadcn-ui-blocks.com/blocks/marketing/testimonials) to follow the visual
  proof with social proof
- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to convert interest
  after the gallery has made its case

## What you can display

Any ordered sequence of images where the viewer benefits from seeing one
frame at a time. A few concrete fits:

- **Product screenshots in order.** Step through an onboarding flow or
  dashboard walkthrough so the sequence reads like a guided tour.
- **Event or campaign photography.** Feature a set of highlight photos
  from a product launch or brand event with captions pulled from the alt
  text.
- **Before and after comparisons.** Place contrasting states side by side
  in the sequence so viewers can flip between them using the arrows.

> Tip: keep the image set to five to eight frames. Longer sets make the
> thumbnail strip scroll, which reduces the at a glance overview it offers.

## More in Marketing Gallery

- [Filmstrip Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/filmstrip-gallery)
- [Fullscreen Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/fullscreen-gallery)
- [Grid Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/grid-gallery)
- [Immersive Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/immersive-gallery)
- [Polaroid Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/polaroid-gallery)
- [Portfolio Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/portfolio-gallery)
