VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-carousel-slides-only/

⇱ Bootstrap 5 Carousel Slides only - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Carousel Slides only

Last Updated : 23 Jul, 2025

Bootstrap 5Carousel Slides only is a type of carousel where there is nothing in the slides of the carousel like the previous, next buttons, captions, and indicators. This carousel is the easiest one to implement as it has the least amount of components but this has the least user accessibility.

Bootstrap 5 Carousel Slides only classes:

  • carousel: This class is used to add to the container holding the whole carousel.
  • carousel slide: This class enables the sliding of the carousel in a specific direction.
  • carousel-inner: This class is used to the inner content of the carousel.
  • carousel-item: This class specifies each item of the carousel.

Syntax:

<div id="..." class="carousel">
<div class="carousel-inner">
<div class="carousel-item">
// Carousel Content
</div>
// Other Carousel Items
</div>
</div>

Example 1: This code example demonstrates a simple slides-only carousel with each slide having different intervals and also the autoplay pauses when it hovers over.

Output:

👁 file

Example 2: This code example demonstrates how to have slides only Bootstrap 5 carousel having images and the carousel in autoplay.

Output:

👁 file

Reference: 

Comment

Explore