</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

Swiper Fade Slider

A crossfading autoplay slider with pagination, via Swiper.

Requires Bootstrap 5, Swiper. 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/swiper@11/swiper-bundle.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/swiper@11/swiper-bundle.min.js"></script>
<div class="swiper swFade" style="width:360px;max-width:100%"><div class="swiper-wrapper">
  <div class="swiper-slide"><div class="rounded-3 d-grid text-white fw-bold" style="height:160px;place-items:center;font-size:24px;background:linear-gradient(135deg,#ff7a18,#ff477e)">Fade 1</div></div>
  <div class="swiper-slide"><div class="rounded-3 d-grid text-white fw-bold" style="height:160px;place-items:center;font-size:24px;background:linear-gradient(135deg,#5b6cff,#00d4ff)">Fade 2</div></div>
  <div class="swiper-slide"><div class="rounded-3 d-grid text-white fw-bold" style="height:160px;place-items:center;font-size:24px;background:linear-gradient(135deg,#16a34a,#a3e635)">Fade 3</div></div>
</div><div class="swiper-pagination"></div></div>
new Swiper('.swFade',{effect:'fade',loop:true,autoplay:{delay:2200},pagination:{el:'.swiper-pagination',clickable:true}});
Free to use.This component uses Bootstrap 5, Swiper (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.