Carousel
A slideshow component for cycling through elements—images or slides of text—like a carousel.
Carousel on BootstrapBasic Example
<div class="carousel slide" id="carouselExampleControls" data-bs-ride="carousel">
<div class="carousel-indicators"><button class="active" type="button" data-bs-target="#carouselExampleControls" data-bs-slide-to="0" aria-current="true" aria-label="Slide 1"></button><button type="button" data-bs-target="#carouselExampleControls" data-bs-slide-to="1" aria-label="Slide 2"></button><button type="button" data-bs-target="#carouselExampleControls" data-bs-slide-to="2" aria-label="Slide 3"></button></div>
<div class="carousel-inner rounded">
<div class="carousel-item active"><img class="d-block w-100" src="../../assets/img/generic/6.jpg" alt="First slide"></div>
<div class="carousel-item"><img class="d-block w-100" src="../../assets/img/generic/7.jpg" alt="Second slide"></div>
<div class="carousel-item"><img class="d-block w-100" src="../../assets/img/generic/8.jpg" alt="Third slide"></div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</button>
</div>
Styled Example
<div class="carousel slide theme-slider text-center" id="controlStyledExample" data-ride="carousel">
<div class="carousel-indicators"><button class="active" type="button" data-bs-target="#controlStyledExample" data-bs-slide-to="0" aria-current="true" aria-label="Slide 1"></button><button type="button" data-bs-target="#controlStyledExample" data-bs-slide-to="1" aria-label="Slide 2"></button><button type="button" data-bs-target="#controlStyledExample" data-bs-slide-to="2" aria-label="Slide 3"></button></div>
<div class="carousel-inner rounded">
<div class="carousel-item active"><img class="d-block w-100" src="../../assets/img/generic/6.jpg" alt="First slide"></div>
<div class="carousel-item"><img class="d-block w-100" src="../../assets/img/generic/7.jpg" alt="Second slide"></div>
<div class="carousel-item"><img class="d-block w-100" src="../../assets/img/generic/8.jpg" alt="Third slide"></div><button class="carousel-control-prev" type="button" data-bs-target="#controlStyledExample" data-bs-slide="prev">
<span class="fas fa-angle-left"></span>
<span class="sr-only">Previous</span>
</button><button class="carousel-control-next" type="button" data-bs-target="#controlStyledExample" data-bs-slide="next">
<span class="fas fa-angle-right"></span>
<span class="sr-only">Next</span>
</button>
</div>
</div>
With Captions
Crossfade
<div class="carousel slide carousel-fade" id="carouselExampleFade" data-ride="carousel">
<div class="carousel-inner rounded">
<div class="carousel-item active"><img class="d-block w-100" src="../../assets/img/generic/8.jpg" alt="First slide"></div>
<div class="carousel-item"><img class="d-block w-100" src="../../assets/img/generic/7.jpg" alt="Second slide"></div>
<div class="carousel-item"><img class="d-block w-100" src="../../assets/img/generic/6.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="sr-only">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="sr-only">Next</span>
</button>
</div>