Carousel
A slideshow component for cycling through elements—images or slides of text—like a carousel.
Do you know the latest update of 2022? Our roadmap is alive for future updates.
Debi Cakar commented on Ecosystem and conservation
1m agoEdward Adams invite you to Prototyping
9h agoRichard Charles mentioned you in UX Basics Field
13h agoYou swapped exactly 0.230000 ETH for 28,031.99
17h agoA slideshow component for cycling through elements—images or slides of text—like a carousel.
Here’s a carousel with slides only. Note the presence of the .d-block and .w-100 on carousel images to prevent browser default image alignment.
Adding in the previous and next controls. We recommend using <button>
elements, but you can also use <a>
elements with role="button"
.
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 .d-md-block
.
Add .carousel-fade
to your carousel to animate slides with a fade transition instead of a slide.
Add data-bs-interval=""
to a .carousel-item
to change the amount of time to delay between automatically cycling to the next item.
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 the data-bs-ride
attribute and has data-bs-interval="false"
so it doesn’t autoplay.