Search...

Carousel

Bootstrap 5 Carousel

Bootstrap 5 Carousel is a dynamic and interactive slideshow designed for presenting content, particularly images and videos.

It's a slideshow that allows you to cycle through a variety of contents. Photos, text, and custom markup can all be utilized with it. Also supported are previous/next buttons and indicators.

Default Carousel

HTML
html
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
<ol class="carousel-indicators">
<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active"></li>
<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1"></li>
<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img
src="https://mdbootstrap.com/img/Photos/Slides/img%20(45).jpg"
class="d-block w-100"
alt="first slide"
/>
</div>
<div class="carousel-item">
<img
src="https://mdbootstrap.com/img/Photos/Slides/img%20(46).jpg"
class="d-block w-100"
alt="second slide"
/>
</div>
<div class="carousel-item">
<img
src="https://mdbootstrap.com/img/Photos/Slides/img%20(47).jpg"
class="d-block w-100"
alt="third slide"
/>
</div>
</div>
<a
class="carousel-control-prev"
href="#carouselExampleIndicators"
role="button"
data-bs-slide="prev"
>
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a
class="carousel-control-next"
href="#carouselExampleIndicators"
role="button"
data-bs-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>

Build modern projects using Bootstrap 5 and Contrast

Trying to create components and pages for a web app or website from scratch while maintaining a modern User interface can be very tedious. This is why we created Contrast, to help drastically reduce the amount of time we spend doing that. so we can focus on building some other aspects of the project.

Contrast Bootstrap PRO consists of a Premium UI Kit Library featuring over 10000+ component variants. Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.