section.
autoplay: true
and adjust interval
as needed.To enable autoplay in the Splide slider on your Webflow site, you need to initialize Splide with the correct options using custom JavaScript. Follow these steps:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Splide/4.0.7/css/splide.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Splide/4.0.7/js/splide.min.js"></script>
mySplide
.autoplay: true
and interval: 3000
(for a 3-second delay) as needed.<script> document.addEventListener("DOMContentLoaded", function () { new Splide("#mySplide", { type: "loop", autoplay: true, interval: 3000, pauseOnHover: true, pauseOnFocus: false }).mount(); });</script>
To enable autoplay on your Splide slider, include Splide’s CDN links, set up the correct HTML structure, and initialize the slider using custom JavaScript with autoplay: true
.