</> ConvertAtlas Developer Tools
Bootstrap 5 · Intermediate

Auto Testimonial Slider

A self-advancing testimonial slider with dot navigation.

Requires Bootstrap 5. 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">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<div class="card border-0 shadow-sm overflow-hidden" style="max-width:340px"><div class="card-body text-center">
  <div id="tsSlide"><div class="text-warning mb-2">★★★★★</div><p class="small mb-2" id="tsText">"Absolutely love this product!"</p><div class="fw-semibold small" id="tsAuthor">— Ava L.</div></div>
  <div class="d-flex justify-content-center gap-1 mt-2" id="tsDots"></div>
</div></div>
var data=[['"Absolutely love this product!"','— Ava L.'],['"Saved us so much time."','— Ben C.'],['"Best decision we made."','— Cara D.']];
var text=document.getElementById('tsText'),author=document.getElementById('tsAuthor'),dots=document.getElementById('tsDots'),i=0;
data.forEach(function(d,k){var b=document.createElement('button');b.className='btn p-0 border-0';b.style.cssText='width:7px;height:7px;border-radius:50%;background:'+(k===0?'#0d6efd':'#ccc');b.onclick=function(){go(k)};dots.appendChild(b)});
function go(n){i=n;text.textContent=data[i][0];author.textContent=data[i][1];[].forEach.call(dots.children,function(d,k){d.style.background=k===i?'#0d6efd':'#ccc'})}
setInterval(function(){go((i+1)%data.length)},3000);
Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.