Carousel
Slides Only
Use slide class to set carousel with slides. Note the presence of the d-block and w-100 class on carousel images to prevent browser default image alignment.
Next.js Preview
With Controls
Use carousel-control-prev and carousel-control-next class with <button> or <a> tag element to show carousel with control navigation.
Next.js Preview
with Indicators
Use carousel-indicators class with <ol> element to show carousel with indicators.
Next.js Preview
with Captions
Use carousel-caption class to add captions to the carousel.
Next.js Preview
Crossfade Animation
Use carousel-fade class to the carousel to animate slides with a fade transition instead of a slide.
Next.js Preview
Individual carousel-item Interval
Use data-bs-interval=" " to a carousel-item to change the amount of time to delay between automatically cycling to the next item.
Next.js Preview
Disable Touch Swiping
Carousels support swiping left/right on touchscreen devices to move between slides. This can be disabled using the data-bs-touch attribute. The example below also does not include thedata-bs-ride attribute and has data-bs-interval="false" so it doesn’t autoplay.
Next.js Preview
Dark Variant
Use carousel-dark class to the carousel for darker controls, indicators, and captions.











