A field guide to motion & navigation
Carousel.
A little motion can open a bigger view. Learn when a carousel helps, how Bootstrap makes one work, and what makes the experience feel effortless.
Many stories. DRAG TO DISCOVER
A carousel is a window, not a storage room.
It presents a short sequence of related slides in one shared frame. A visitor can move through the sequence with controls, indicators, a swipe, or—in some experiences—automatic rotation.
Use it when the items belong together and each one deserves a moment. Keep the first view useful on its own, make the next step obvious, and let people set the pace.
The Bootstrap 5.3 default
A familiar carousel, built with Bootstrap’s own markup and behavior. Use the arrows, the dots, your keyboard, or a swipe on touch screens.
Arrows, indicators, arrow keys, and touch gestures work together.
A short transition connects the slides without changing the frame.
Images, captions, calls to action, and custom layouts can share a slide.
A small set of parts. A lot of control.
Bootstrap keeps the structure predictable, so you can spend your design time on the content and the rhythm.
Carousel & inner
The outer .carousel is the component. .carousel-inner holds the slides and clips the transition to the frame.
Items
Each .carousel-item is one state in the sequence. Mark exactly one item as .active in the initial HTML.
Controls
Previous and next controls let people move at their own pace. Give every icon button a clear accessible name.
Indicators
Indicators show position and jump to a specific slide. Their labels should identify the destination, not just the dot.
Caption & context
Captions help explain why a slide matters. Keep copy short, provide enough contrast, and avoid placing essential information only inside an image.
CONTENT FIRSTOne component. Distinct experiences.
The right pattern depends on what the visitor needs to compare, understand, or discover.
Editorial hero
Use large imagery and one concise message to set a mood or introduce a campaign. Keep the first slide meaningful without interaction.
Product gallery
Show useful angles and close-ups. Keep pricing, key specifications, and the primary action in a stable, easy-to-find place.
Good design is as little design as possible.
DIETER RAMS — 03 / 06Testimonial sequence
Give each quote room to breathe. Show attribution and provide manual controls so readers can pause on a line.
Adjust the feeling, keep the structure.
Bootstrap includes simple ways to change how a carousel looks and moves.
.carousel-fadeA gentle dissolve between slides.
data-bs-theme="dark"Contrast controls on light content.
ride: falseLet the visitor advance each slide.
Useful options, without the guesswork.
Bootstrap 5.3 reads configuration from data attributes or JavaScript. These are the everyday decisions that shape the experience.
intervalTime each slide stays visible in milliseconds.5000 mskeyboardMove between slides with the left and right arrow keys.truepausePause automatic cycling while the pointer is over the carousel.hoverrideStart cycling automatically when the page loads.false*touchAllow swipe gestures on touch-enabled devices.truewrapContinue from the last slide back to the first.true<div class="carousel slide"
data-bs-ride="carousel"
data-bs-interval="6000">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="..." alt="...">
</div>
<div class="carousel-item">...</div>
</div>
<button data-bs-slide="prev">...</button>
<button data-bs-slide="next">...</button>
</div>
data-bs-ride="carousel" is present. Without it, people control the pace..next().prev().nextWhenVisible().pause().cycle().to(index).dispose()Need to react to a change? Listen for slide.bs.carousel before a transition or slid.bs.carousel after it completes.
The carousel is changing shape.
The strongest recent patterns make the interaction more direct, calmer, and easier to understand.
Swipeable rails for browsing
Product shelves and card collections often behave like horizontal lists on phones, keeping the next item partially visible as a quiet invitation to swipe.
One strong frame, one clear message
Full-bleed imagery is paired with restrained copy, readable contrast, and a clear next step instead of multiple competing calls to action.
Motion with an easy off-switch
Manual controls, visible progress, and fewer surprises are replacing autoplay as the default choice for content people need to read.
Different slides, shared rhythm
Design systems are giving each slide room to fit its content while keeping navigation, spacing, and visual pacing consistent.
A useful rule of thumb If visitors need to compare several items at once, use a grid or a scrollable rail. A carousel is best when one item at a time is the right focus.
Make movement feel considerate.
A carousel can be beautiful and still be calm, clear, and usable with assistive technology.
Read the Bootstrap 5.3 docs- Give users control
Provide visible previous and next controls. Avoid surprise movement and let visitors pause rotation.
- Respect reduced motion
Keep transitions subtle and honor the operating system’s reduced-motion preference in custom animation.
- Label every destination
Name the carousel and its controls; describe meaningful images with accurate alternative text.
- Keep reading comfortable
Use contrast, legible type, keyboard access, and enough time for a slide to be read.
- Make every slide reachable
Do not hide essential content or actions in a slide that visitors may never discover.
Useful before it moves.
Clear while it moves.
The Bootstrap 5.3 default
A familiar carousel with the standard horizontal slide transition. It stays responsive, fills the available width, and works with arrows, indicators, keyboard input, and touch gestures.
The same frame, with Fade.
Add carousel-fade when a gentle dissolve suits the content better than a horizontal movement. The responsive Bootstrap structure and controls stay the same.
carousel-fade class changes only the transition.
Auto-advances every 5 seconds · pauses on hover · wraps at the end