Skip to content
document.addEventListener("DOMContentLoaded", function() {
let index = 0;
window.moveSlide = function(step) {
const slides = document.getElementById("slides");
if (!slides) return;
const total = slides.children.length;
index += step;
if (index >= total) index = 0;
if (index < 0) index = total - 1;
slides.style.transform = "translateX(" + (-index * 100) + "%)";
}
setInterval(() => {
moveSlide(1);
}, 5000);
});