Carousel
These modular elements can be readily used and customized in every layout across pages.
Bootstrap Carousel
A slideshow component for cycling through elements—images or slides of text—like a carousel. View Carousel on Bootstrap
Basic Example
<div class="carousel slide" id="carouselExampleIndicatorsOne" data-bs-ride="carousel">
<div class="carousel-indicators"><button class="active" type="button" data-bs-target="#carouselExampleIndicatorsOne" data-bs-slide-to="0" aria-current="true" aria-label="Slide 1"></button><button type="button" data-bs-target="#carouselExampleIndicatorsOne" data-bs-slide-to="1" aria-label="Slide 2"></button><button type="button" data-bs-target="#carouselExampleIndicatorsOne" data-bs-slide-to="2" aria-label="Slide 3"></button></div>
<div class="carousel-inner">
<div class="carousel-item active"><img class="d-block w-100" src="../assets/img/gallery/g4.jpg" alt="First slide" /></div>
<div class="carousel-item"><img class="d-block w-100" src="../assets/img/gallery/g5.jpg" alt="Second slide" /></div>
<div class="carousel-item"><img class="d-block w-100" src="../assets/img/gallery/g6.jpg" alt="Third slide" /></div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicatorsOne" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicatorsOne" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
With Captions
<div class="carousel slide" id="carouselExampleIndicators" data-bs-ride="carousel">
<div class="carousel-indicators"><button class="active" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" aria-current="true" aria-label="Slide 1"></button><button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button><button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button></div>
<div class="carousel-inner">
<div class="carousel-item active"><img class="d-block w-100" src="../assets/img/gallery/g7.jpg" alt="First slide" />
<div class="carousel-caption d-none d-md-block">
<h5 class="text-white">First Slide Heading</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
<div class="carousel-item"><img class="d-block w-100" src="../assets/img/gallery/g8.jpg" alt="Second slide" />
<div class="carousel-caption d-none d-md-block">
<div class="carousel-caption d-none d-md-block">
<h5 class="text-white">First Slide Heading</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</div>
<div class="carousel-item"><img class="d-block w-100" src="../assets/img/gallery/g9.jpg" alt="Third slide" />
<div class="carousel-caption d-none d-md-block">
<h5 class="text-white">First Slide Heading</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
Crossfade Example
<div class="carousel slide carousel-fade" id="carouselExampleFade" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active"><img class="d-block w-100" src="../assets/img/gallery/g1.jpg" alt="First slide" /></div>
<div class="carousel-item"><img class="d-block w-100" src="../assets/img/gallery/g4.jpg" alt="Second slide" /></div>
<div class="carousel-item"><img class="d-block w-100" src="../assets/img/gallery/g8.jpg" alt="Third slide" /></div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button><button class="carousel-control-next" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>