A slideshow component for cycling through elements—images or slides of text—like a carousel. Read the Official Bootstrap Documentation for a full list of instructions and other options.
Here’s a carousel with slides only. Note the presence of the
.w-100 on carousel images to prevent browser default image alignment.
Adding in the previous and next controls:
You can also add the indicators to the carousel, alongside the controls, too.
Add captions to your slides easily with the
.carousel-caption element within any
.carousel-item. They can be easily hidden on smaller viewports, as shown below, with optional display utilities. We hide them initially with
.d-none and bring them back on medium-sized devices with
.carousel-fade to your carousel to animate slides with a fade transition instead of a slide.