Bootstrap 5 carousels are slideshow components for cycling through images, cards or custom content. This page covers 4 carousel patterns — image, fade, card and auto-play — each with working copy-paste HTML.
Quick Setup
Carousels require Bootstrap 5 JS bundle:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
Key Classes Reference
| Class | What It Does |
|---|---|
.carousel | Required wrapper element |
.carousel-inner | Container for all slides |
.carousel-item | Each individual slide |
.carousel-item.active | The currently visible slide |
.carousel-fade | Crossfade instead of slide transition |
.carousel-indicators | Dot indicators at the bottom |
.carousel-control-prev | Previous button |
.carousel-control-next | Next button |
.carousel-caption | Text overlay on image slides |
data-bs-ride="carousel" | Enables auto-play |
data-bs-interval="3000" | Sets slide delay in milliseconds |
1. Basic Bootstrap 5 Image Carousel
A standard image carousel with prev/next controls and indicator dots.
2. Bootstrap 5 Fade Carousel
Smooth crossfade transition between slides using carousel-fade instead of the default slide.
3. Bootstrap 5 Card Carousel
A carousel displaying multiple cards per slide. Great for testimonials and product showcases.
4. Bootstrap 5 Auto-Play Carousel
Carousel that auto-advances every 3 seconds using data-bs-ride and data-bs-interval.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.