Splide Autoplay Carousel
An autoplaying looped carousel with arrows and pagination, via Splide.
Requires Bootstrap 5, Splide. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js"></script><div class="splide" id="spCar" style="width:380px;max-width:100%"><div class="splide__track"><ul class="splide__list">
<li class="splide__slide"><div class="rounded-3 d-grid text-white fw-bold" style="height:160px;place-items:center;font-size:32px;background:linear-gradient(135deg,#ff7a18,#ff477e)">1</div></li>
<li class="splide__slide"><div class="rounded-3 d-grid text-white fw-bold" style="height:160px;place-items:center;font-size:32px;background:linear-gradient(135deg,#5b6cff,#00d4ff)">2</div></li>
<li class="splide__slide"><div class="rounded-3 d-grid text-white fw-bold" style="height:160px;place-items:center;font-size:32px;background:linear-gradient(135deg,#16a34a,#a3e635)">3</div></li>
</ul></div></div>new Splide('#spCar',{type:'loop',autoplay:true,interval:2500,arrows:true,pagination:true}).mount();Free to use.This component uses Bootstrap 5, Splide (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.