Live examples and demonstrations
The Responsive Slot Layout includes a flexible carousel/slideshow component that supports both basic image carousels with navigation arrows and advanced slideshows with numbered indicators, autoplay, and pause controls. The carousel is fully responsive and includes keyboard navigation support for accessibility.
Get up and running in 5 minutes with our Quick Start Guide!
View Quick Start Guidedata-auto-rotate="true" — Enable automatic slide rotationdata-interval="3" — Set rotation interval in seconds (default: 3)
Advanced Slider with Auto-Rotation and Indicators
Advanced Slider with Auto-Rotation and Indicators, with additional pause and play button outside of slideshow
document.addEventListener("DOMContentLoaded", function () {
var pauseButton = document.getElementById("pauseButton");
var resumeButton = document.getElementById("resumeButton");
var slider = document.querySelector("#carousel-2");
if (pauseButton) {
pauseButton.addEventListener("click", function () {
if (slider && typeof slider.pauseAutoRotate === "function") {
slider.pauseAutoRotate();
} else if (typeof pauseSlideshow === "function") {
pauseSlideshow("#carousel-2");
}
});
}
if (resumeButton) {
resumeButton.addEventListener("click", function () {
if (slider && typeof slider.resumeAutoRotate === "function") {
slider.resumeAutoRotate();
} else if (typeof resumeSlideshow === "function") {
resumeSlideshow("#carousel-2");
}
});
}
});
alt text, and the caption content.
alt text for
screen readers.