Bootstrap 5 Carousel Slides only Last Updated : 23 Jul, 2025 Suggest changes Share Like Article Like Report Bootstrap 5 Carousel 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. HTML <!doctype html> <html lang="en"> <head> <link href= "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <script src= "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity= "sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"> </script> </head> <body> <h1 class="m-4 text-success"> GeeksforGeeks </h1> <h4 class="ms-4"> Bootstrap 5 Carousel Slides only </h4> <div class="container mb-4 p-4"> <div id="carouselExample" class="carousel slide" data-bs-ride="carousel" data-bs-pause="hover"> <div class="carousel-inner text-light text-center"> <div class="carousel-item bg-dark active" data-bs-interval="2000"> <h1 class="m-4 text-success"> This is the first slide </h1> <h4 class="m-4"> This slide has a time delay of 2000ms </h4> </div> <div class="carousel-item bg-dark" \ data-bs-interval="4000"> <h1 class="m-4 text-danger"> This is the second slide </h1> <h4 class="m-4"> This slide has a time delay of 4000ms </h4> </div> <div class="carousel-item bg-dark" data-bs-interval="6000"> <h1 class="m-4 text-warning"> This is the third slide </h1> <h4 class="m-4"> This slide has a time delay of 6000ms </h4> </div> </div> </div> </div> </body> </html> Output: Example 2: This code example demonstrates how to have slides only Bootstrap 5 carousel having images and the carousel in autoplay. HTML <!doctype html> <html lang="en"> <head> <link href= "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <script src= "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity= "sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"> </script> </head> <body> <h1 class="m-4 text-success"> GeeksforGeeks </h1> <h4 class="ms-4"> Bootstrap 5 Carousel Slides only </h4> <div class="container mb-4 p-4 text-light text-center"> <div id="carouselExample" class="carousel slide carousel-fade mb-4" data-bs-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item bg-dark active pb-4" data-bs-interval="3500"> <h1 class="m-4 text-success"> This is the first slide </h1> <img src= "https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200-1.png" width="25%" alt="GFG LOGO"> </div> <div class="carousel-item bg-dark pb-4"> <h1 class="m-4 text-warning text-center" data-bs-interval="3500"> This is the second slide </h1> <div class="text-center"> <img src= "https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png" width="25%" alt="GFG LOGO"> </div> </div> <div class="carousel-item bg-dark pb-4" data-bs-interval="3500"> <h1 class="m-4 text-warning"> This is the third slide </h1> <div class="text-center"> <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20221128115907/gfglogo.png" width="25%" alt="GFG LOGO"> </div> </div> </div> </div> </div> </body> </html> Output: Reference: https://getbootstrap.com/docs/5.0/components/carousel/#slides-only Create Quiz P priyanshuchatterjee01 Follow 0 Article Tags : Web Technologies Bootstrap Bootstrap-5 Bootstrap-5 Carousel Component Explore LayoutBootstrap 5 Introduction 4 min read Bootstrap 5 Layout Breakpoints 3 min read Bootstrap 5 Layout Containers 3 min read BootStrap 5 Layout Grid System 3 min read Bootstrap 5 Columns 2 min read Bootstrap 5 Gutters 2 min read Bootstrap 5 Utilities 2 min read Bootstrap 5 Z-index 2 min read ContentBootstrap Reboot 2 min read Bootstrap 5 Typography 2 min read Bootstrap 5 Images 1 min read Bootstrap 5 Tables 2 min read Bootstrap 5 Figures 2 min read FormsBootstrap-5 Forms 2 min read Bootstrap 5 Form Controls 2 min read Bootstrap 5 Select 2 min read Bootstrap 5 Checks and Radios 2 min read Bootstrap 5 Range 2 min read Bootstrap 5 Input Group 3 min read Bootstrap 5 Floating labels 2 min read Forms LayoutBootstrap 5 Layout Forms 2 min read Bootstrap5 Layout Utilities 2 min read Bootstrap 5 Layout Form Grid 2 min read Bootstrap 5 Layout Gutters 2 min read Bootstrap 5 Layout Horizontal form 2 min read Bootstrap 5 Layout Horizontal form label sizing 2 min read Bootstrap 5 Layout Column sizing 2 min read Bootstrap 5 Layout Auto-sizing 2 min read Bootstrap 5 Layout Inline forms 2 min read Bootstrap 5 Validation 4 min read ComponentsBootstrap 5 Accordion 3 min read Bootstrap 5 Alerts 2 min read Bootstrap 5 Badges 2 min read Bootstrap Breadcrumb 2 min read Bootstrap 5 Buttons 3 min read Bootstrap 5 | Button group 4 min read Bootstrap 5 | Card 11 min read Bootstrap 5 Carousel 3 min read Bootstrap 5 | Close button 1 min read Bootstrap 5 Collapse 3 min read Bootstrap 5 Dropdowns 9 min read Bootstrap 5 List group 5 min read Bootstrap 5 Modal 7 min read NavbarBootstrap 5 Navbar Brand 3 min read Bootstrap 5 Navbar Brand Text 2 min read Bootstrap Navbar Brand Image 2 min read Bootstrap 5 Navbar Nav 2 min read Bootstrap 5 Navbar Forms 2 min read Bootstrap 5 Navbar Text 2 min read Bootstrap 5 Offcanvas 12 min read Bootstrap 5 Popovers 2 min read Bootstrap 5 Progress 5 min read Bootstrap 5 Scrollspy 4 min read Bootstrap 5 Spinners 3 min read Bootstrap 5 Toasts 3 min read Bootstrap 5 Tooltips 3 min read HelpersBootstrap 5 Clearfix 2 min read Bootstrap 5 Colored links 2 min read Bootstrap 5 Ratios 2 min read Bootstrap 5 Position 2 min read Bootstrap 5 Visually hidden 2 min read Bootstrap 5 Stretched link 2 min read Bootstrap 5 Text Truncation 2 min read ExtendBootstrap 5 Approach 3 min read Bootstrap 5 Icons 2 min read UtilitiesBootstrap 5 Background 2 min read Bootstrap 5 Borders 2 min read Bootstrap 5 Colors 3 min read Bootstrap 5 Display 3 min read Bootstrap 5 Flex 3 min read Bootstrap 5 Float 3 min read Bootstrap 5 Interactions 3 min read Bootstrap 5 Overflow 2 min read ReferencesBootstrap 5 Layout Complete Reference 5 min read Bootstrap 5 Content Complete Reference 7 min read Bootstrap 5 Forms Reference 7 min read Bootstrap 5 Components Reference 15+ min read Bootstrap 5 Helpers Reference 2 min read Bootstrap 5 Utility Reference 11 min read My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like