# Portfolio Hero Showcase: Carousel Slider

A hero with a sliding carousel of images behind a headline and short intro. Use it to cycle through signature work the moment a portfolio loads.

- Page: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/carousel-slider
- Collection: [Portfolio](https://www.shadcn-ui-blocks.com/blocks/portfolio), Free tier
- Group: [Hero Showcases](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/carousel-slider.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/portfolio-portfolio-hero-showcases-carousel-slider
```

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/portfolio-portfolio-hero-showcases-carousel-slider.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/portfolio/portfolio-hero-showcases/carousel-slider`

## About this block

Carousel Slider is a full viewport hero with a rotating background image
behind anchored copy. Three slides cycle automatically every five seconds,
each one covering the entire viewport with a full bleed photograph and a
gradient overlay that fades from transparent at the top to deep black at
the bottom. Anchored to the lower left over that gradient sits the active
slide's content: a pill badge naming the category, a large heading, a
short description line, a primary call to action button, and a paired
prev/next icon pair with a numeric position counter.

The slides array and every string inside it are plain data, so you can
swap the images, rewrite the badge labels, headings, and descriptions, or
add and remove slides without touching the layout code. The call to action
button label and the autoplay interval are equally easy to adjust. The
navigation controls and position counter are always rendered and require
no configuration.

## When to use

Reach for this block when the hero needs to carry several distinct
categories of work at once and a single static image would leave the rest
unrepresented. It suits a real estate marketplace landing page well: each
slide can feature a different property type, neighborhood, or listing
tier, cycling them in front of visitors before they scroll. The full
viewport image draws immediate attention to the visual quality of the
listings, and the badge makes the category legible at a glance. For pages
that only have one story to tell, the
[Split Layout](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/split-layout)
or [Full Screen Centered](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/full-screen-centered)
hero keeps the messaging tighter.

A natural flow around it on a Portfolio page:

**Before**

- A site navigation bar to orient visitors before the full screen takeover

**After**

- [Featured Work Highlights](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-featured-work-highlights)
  to let visitors go deeper on the work teased in the slides
- [Project Displays](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-project-displays) to
  present the full grid of listings or case studies once interest is set

## What you can display

Each slide is an independent record, so the content can shift per slide
while the layout stays fixed. A few ways to use that flexibility:

- **Property type spotlights.** Point each slide at a distinct category
  such as residential, commercial, and new builds, using the badge to
  label the tier and the heading to name the collection.
- **Seasonal or campaign rotations.** Swap the slide data to reflect a
  current promotion without rebuilding the hero, keeping the page fresh
  between campaigns.
- **Service area showcase.** Dedicate one slide per city or neighborhood,
  pairing a recognizable location photograph with a short line about local
  expertise.

> Tip: use high contrast photography where the subject is brightest near
> the top of the frame so the bottom gradient does not obscure faces or
> key details.

## More in Portfolio Hero Showcases

- [Floating Elements](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/floating-elements)
- [Full Screen Centered](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/full-screen-centered)
- [Minimalist CTA](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/minimalist-cta)
- [Split Layout](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/split-layout)
