--- title: Carousel summary: A carousel is used to display multiple pieces of visual content without taking up too much space. Carousels eliminate the need to scroll down the page to see all content and are a popular method of displaying marketing information. bootstrapLink: components/carousel/ description: Display visual content with carousels. --- ## Default markup Use a carousel to make your website design more visually appealing for users. In the default carousel design, respective elements slide automatically and users can go to the next slide by clicking an arrow. {% capture html -%}
{%- endcapture %} {% include "docs/example.html" html=html %} ## Dots indicators You can replace the standard indicators with dots. Just add the `carousel-indicators-dot` class to your carousel: {% capture html -%} {%- endcapture %} {% include "docs/example.html" html=html %} ## Thumb indicators The syntax is similar for thumbnails. Add class `carousel-indicators-thumb` and add `background-image` to element `[data-bs-target]`. Default thumbnails have an aspect ratio of 1:1. To change this use `ratio` utils. {% capture html -%} {%- endcapture %} {% include "docs/example.html" html=html %} ## Vertical indicators To make the indicators go to the right side, add the `carousel-indicators-vertical` class. You can combine it with other classes that are responsible for dots or thumbnails. {% capture html -%} {%- endcapture %} {% include "docs/example.html" html=html %} An example of adding thumbnails on the right side: {% capture html -%} {%- endcapture %} {% include "docs/example.html" html=html %} ## Carousel with captions Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. To make the text more readable on the image you can add `carousel-caption-background` which will add a black overlay over the image. Below the `md` responsive breakpoint, the captions on the following example will be hidden as they have the `d-none` class applied to them. {% capture html -%} {%- endcapture %} {% include "docs/example.html" html=html %}