Quick start guide and documentation
<head>)
</body>)
Perfect for image galleries and product showcases with simple prev/next navigation
Full-featured slideshow with numbered indicators, autoplay, and pause controls
| Attribute | Purpose | Values |
|---|---|---|
data-auto-rotate |
Enable automatic slide rotation | "true" |
data-interval |
Rotation interval in seconds | "3" (default), "5", etc. |
data-slide-index |
Index for slide indicator buttons | "0", "1", "2"... |
| Class | Purpose |
|---|---|
.slider |
Main carousel container |
.carousel |
Slides container |
.carousel-slide |
Individual slide |
.active |
Currently visible slide/indicator |
.carousel-caption |
Caption overlay on slides |
.carousel-prev-arrow |
Previous slide button |
.carousel-next-arrow |
Next slide button |
.slider-indicators |
Container for numbered indicators |
.slider-indicator |
Individual numbered indicator |
.pause-container |
Container for pause/play buttons |
.active class on page loaddata-auto-rotate="true", slides advance automaticallyclass="carousel-slide active" and the first indicator with class="slider-indicator active" for proper initialization.
data-interval="5" for longer intervals—give users time to read captions
.slider-indicators-scroll wrapper to enable horizontal scrolling for many indicators
.carousel-caption for image-only carousels
alt text for images for screen reader users
carousel.js is loaded after layout.jsclass="carousel-slide active".carousel-prev-arrow, .carousel-next-arrow)data-auto-rotate="true" is on the .slider containerevent-listeners.js is loadeddata-slide-index matching slide order (0, 1, 2...)class="slider-indicator"RSL Carousels are ADA-compliant by default:
Open carousel.html for live demos
Use custom CSS to match your brand colors and design
Combine with modals for lightbox-style image viewing