Bootstrap 5 Testimonial Carousel with Autoplay
A testimonial carousel showing quote cards with star ratings and customer portraits. It scrolls and snaps one card at a time, autoplays, pauses on hover or focus, and shows one, two or three cards depending on screen width.
<section class="wdw-stage">
<div class="container" style="max-width:1140px">
<div class="d-flex flex-column flex-md-row align-items-md-end justify-content-between gap-3 mb-4">
<div>
<span class="wdw-eyebrow">Testimonials</span>
<h2 class="wdw-heading display-6 mb-0">Loved by teams that ship</h2>
</div>
<p class="mb-0 d-flex align-items-center gap-2 wdw-muted"><span class="fs-3 fw-bold text-body-emphasis lh-1">4.9</span><span class="text-warning" aria-hidden="true">★★★★★</span><span>from 2,100 reviews</span></p>
</div>
<div class="row g-4 align-items-stretch">
<div class="col-12 col-lg-4">
<figure class="wdw-aurora rounded-4 p-4 p-lg-5 m-0 h-100 d-flex flex-column gap-3 overflow-hidden">
<svg width="48" height="48" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" class="opacity-75"><path d="M9.5 6C6.5 7 4 9.800 4 14v4h6v-6H7c0-2 1-3 3-3.700L9.500 6Zm10 0c-3 1-5.500 3.800-5.500 8v4h6v-6h-3c0-2 1-3 3-3.700L19.500 6Z"/></svg>
<blockquote class="mb-0 flex-grow-1"><p class="fs-4 fw-semibold lh-base mb-0">We replaced three tools with one, and the team never looked back. It is the calmest launch week we have had.</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle border border-2 border-white border-opacity-50" width="48" height="48" src="https://i.pravatar.cc/96?img=47" alt="Portrait of Priya Raman">
<span class="lh-sm"><strong class="d-block">Priya Raman</strong><small class="text-white-50 d-block mb-1">VP Operations</small><span class="badge rounded-pill bg-white bg-opacity-25 fw-semibold">Meridian</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
<div class="col-12 col-lg-8">
<div class="wdw-slider" id="wdwSlider" role="region" aria-roledescription="carousel" aria-label="Customer testimonials" tabindex="0">
<div class="wdw-track" id="wdwTrack" aria-live="off">
<div class="wdw-slide" role="group" aria-roledescription="slide" aria-label="1 of 6">
<figure class="position-relative wdw-card-sm h-100 p-4 m-0 d-flex flex-column gap-3">
<div class="wdw-stars text-warning" aria-hidden="true">★★★★★</div>
<blockquote class="mb-0 flex-grow-1"><p class="mb-0">“Reviews on site changed how we sell. Visitors trust us faster and our checkout conversion went up within weeks.”</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle" width="48" height="48" src="https://i.pravatar.cc/96?img=11" alt="Portrait of Delbert Simonas">
<span class="lh-sm"><strong class="d-block text-body-emphasis">Delbert Simonas</strong><small class="wdw-muted d-block mb-1">Head of Product</small><span class="badge rounded-pill text-bg-light border fw-semibold">Lumen</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
<div class="wdw-slide" role="group" aria-roledescription="slide" aria-label="2 of 6">
<figure class="position-relative wdw-card-sm h-100 p-4 m-0 d-flex flex-column gap-3">
<div class="wdw-stars text-warning" aria-hidden="true">★★★★★</div>
<blockquote class="mb-0 flex-grow-1"><p class="mb-0">“I was skeptical it would fit our workflow. Two days in, the whole team had stopped asking for alternatives.”</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle" width="48" height="48" src="https://i.pravatar.cc/96?img=12" alt="Portrait of Tikoh Amin">
<span class="lh-sm"><strong class="d-block text-body-emphasis">Tikoh Amin</strong><small class="wdw-muted d-block mb-1">Design Lead</small><span class="badge rounded-pill text-bg-light border fw-semibold">Northwind</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
<div class="wdw-slide" role="group" aria-roledescription="slide" aria-label="3 of 6">
<figure class="position-relative wdw-card-sm h-100 p-4 m-0 d-flex flex-column gap-3">
<div class="wdw-stars text-warning" aria-hidden="true">★★★★★</div>
<blockquote class="mb-0 flex-grow-1"><p class="mb-0">“The build quality and attention to detail are what sold me. It is the tool I open first every morning.”</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle" width="48" height="48" src="https://i.pravatar.cc/96?img=13" alt="Portrait of Malachi Lensing">
<span class="lh-sm"><strong class="d-block text-body-emphasis">Malachi Lensing</strong><small class="wdw-muted d-block mb-1">Founder</small><span class="badge rounded-pill text-bg-light border fw-semibold">Orbit Studio</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
<div class="wdw-slide" role="group" aria-roledescription="slide" aria-label="4 of 6">
<figure class="position-relative wdw-card-sm h-100 p-4 m-0 d-flex flex-column gap-3">
<div class="wdw-stars text-warning" aria-hidden="true">★★★★★</div>
<blockquote class="mb-0 flex-grow-1"><p class="mb-0">“Fast, stable and genuinely well thought out. Setup took minutes and nothing has broken since.”</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle" width="48" height="48" src="https://i.pravatar.cc/96?img=14" alt="Portrait of Christian Isla">
<span class="lh-sm"><strong class="d-block text-body-emphasis">Christian Isla</strong><small class="wdw-muted d-block mb-1">Engineer</small><span class="badge rounded-pill text-bg-light border fw-semibold">Fieldnote</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
<div class="wdw-slide" role="group" aria-roledescription="slide" aria-label="5 of 6">
<figure class="position-relative wdw-card-sm h-100 p-4 m-0 d-flex flex-column gap-3">
<div class="wdw-stars text-warning" aria-hidden="true">★★★★★</div>
<blockquote class="mb-0 flex-grow-1"><p class="mb-0">“Support answered in under an hour and the rollout to forty people was painless.”</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle" width="48" height="48" src="https://i.pravatar.cc/96?img=15" alt="Portrait of Amara Okafor">
<span class="lh-sm"><strong class="d-block text-body-emphasis">Amara Okafor</strong><small class="wdw-muted d-block mb-1">COO</small><span class="badge rounded-pill text-bg-light border fw-semibold">Brightside</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
<div class="wdw-slide" role="group" aria-roledescription="slide" aria-label="6 of 6">
<figure class="position-relative wdw-card-sm h-100 p-4 m-0 d-flex flex-column gap-3">
<div class="wdw-stars text-warning" aria-hidden="true">★★★★★</div>
<blockquote class="mb-0 flex-grow-1"><p class="mb-0">“Clean docs, honest pricing and zero surprises. Exactly what we wanted from a vendor.”</p></blockquote>
<figcaption class="d-flex align-items-center gap-3">
<img class="rounded-circle" width="48" height="48" src="https://i.pravatar.cc/96?img=16" alt="Portrait of Jonas Weber">
<span class="lh-sm"><strong class="d-block text-body-emphasis">Jonas Weber</strong><small class="wdw-muted d-block mb-1">CTO</small><span class="badge rounded-pill text-bg-light border fw-semibold">Parcel</span></span>
<span class="visually-hidden">Rated 5 out of 5 stars.</span>
</figcaption>
</figure>
</div>
</div>
</div>
<div class="d-flex align-items-center justify-content-between flex-nowrap gap-2 mt-3">
<div class="d-flex align-items-center" id="wdwDots" role="group" aria-label="Choose slide"></div>
<div class="d-flex flex-nowrap gap-2">
<button type="button" class="btn btn-outline-secondary rounded-circle p-0 wdw-ctl" id="wdwPause" aria-pressed="false" aria-label="Pause automatic rotation"><span class="wdw-ico-pause"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 5v14M16 5v14"/></svg></span><span class="wdw-ico-play d-none"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m7 4 13 8-13 8V4Z"/></svg></span></button>
<button type="button" class="btn btn-outline-secondary rounded-circle p-0 wdw-ctl" id="wdwPrev" aria-label="Previous testimonials (loops to the end)"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></button>
<button type="button" class="btn btn-outline-secondary rounded-circle p-0 wdw-ctl" id="wdwNext" aria-label="Next testimonials (loops to the start)"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></button>
</div>
</div>
</div>
</div>
</div>
</section>
/* Web Designer Wall library style — shared base for every Bootstrap 5 snippet.
Indigo accent, Plus Jakarta Sans, soft cards, pill buttons. Works in light and dark. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root,
[data-bs-theme="light"] {
--wdw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--bs-body-font-family: var(--wdw-font);
--bs-primary: #4f46e5;
--bs-primary-rgb: 79, 70, 229;
--bs-primary-text-emphasis: #3730a3;
--bs-primary-bg-subtle: #eef2ff;
--bs-primary-border-subtle: #c7d2fe;
--bs-link-color: #4f46e5;
--bs-link-color-rgb: 79, 70, 229;
--bs-link-hover-color: #4338ca;
--bs-link-hover-color-rgb: 67, 56, 202;
--bs-focus-ring-color: rgba(79, 70, 229, 0.25);
--bs-border-radius: 0.75rem;
--bs-border-radius-lg: 1rem;
--bs-border-radius-xl: 1.25rem;
--wdw-radius-card: 1.25rem;
--wdw-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.22);
--wdw-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.12);
--wdw-stage: #f5f6fb;
}
[data-bs-theme="dark"] {
--bs-primary: #818cf8;
--bs-primary-rgb: 129, 140, 248;
--bs-primary-text-emphasis: #c7d2fe;
--bs-primary-bg-subtle: rgba(129, 140, 248, 0.14);
--bs-primary-border-subtle: rgba(129, 140, 248, 0.35);
--bs-link-color: #a5b4fc;
--bs-link-color-rgb: 165, 180, 252;
--bs-link-hover-color: #c7d2fe;
--bs-link-hover-color-rgb: 199, 210, 254;
--bs-focus-ring-color: rgba(129, 140, 248, 0.35);
--wdw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
--wdw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
--wdw-stage: #0f1117;
}
body { font-family: var(--wdw-font); -webkit-font-smoothing: antialiased; }
/* Bootstrap compiles its blue into these components; point them at the accent. */
.btn-primary {
--bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
--bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
--bs-btn-disabled-bg: var(--bs-primary); --bs-btn-disabled-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0f1117; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; --bs-btn-hover-color: #0f1117; --bs-btn-active-color: #0f1117; }
.btn-outline-primary {
--bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
--bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn { --bs-btn-font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-sm { min-height: 36px; }
.form-control, .form-select { min-height: 44px; border-radius: .75rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--bs-primary-rgb), .6); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }
.nav { --bs-nav-link-color: var(--bs-secondary-color); --bs-nav-link-hover-color: var(--bs-emphasis-color); }
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-color: var(--bs-body-color); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--bs-primary); }
.list-group { --bs-list-group-active-bg: var(--bs-primary); --bs-list-group-active-border-color: var(--bs-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--bs-primary); border-radius: .875rem; box-shadow: var(--wdw-shadow-sm); }
.accordion { --bs-accordion-active-bg: var(--bs-primary-bg-subtle); --bs-accordion-active-color: var(--bs-primary-text-emphasis); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.badge { font-weight: 600; }
/* Library building blocks — use these instead of re-inventing them per snippet. */
.wdw-stage { min-height: 100vh; display: flex; align-items: center; background: var(--wdw-stage); padding-block: 3rem; }
.wdw-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--wdw-radius-card); box-shadow: var(--wdw-shadow); }
.wdw-card-sm { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; box-shadow: var(--wdw-shadow-sm); }
.wdw-aurora { position: relative; color: #fff; background: radial-gradient(60% 55% at 100% 0, #818cf8 0, transparent 70%), radial-gradient(65% 60% at 0 100%, #ec4899 0, transparent 65%), #1e1b4b; }
.wdw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-primary); }
.wdw-heading { font-weight: 800; letter-spacing: -.02em; color: var(--bs-emphasis-color); }
.wdw-muted { color: var(--bs-secondary-color); }
.wdw-icon { width: 2.75rem; height: 2.75rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .875rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
/* Component */
.wdw-slider { overflow: hidden; border-radius: 1.25rem; margin-block: -1rem; padding-block: 1rem; }
.wdw-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1rem; }
.wdw-track::-webkit-scrollbar { display: none; }
.wdw-slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 768px) { .wdw-slide { flex-basis: calc((100% - 1.25rem) / 2); } }
.wdw-stars { letter-spacing: .15em; font-size: 1.1rem; }
.wdw-slide blockquote p { font-size: 1.05rem; line-height: 1.65; color: var(--bs-body-color); }
.wdw-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; }
.wdw-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--bs-border-color); transition: width .25s, background .25s; }
.wdw-dot[aria-current="true"]::before { width: 28px; background: var(--bs-primary); }
.wdw-slider:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .wdw-track { scroll-behavior: auto; } }
.wdw-ctl { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.wdw-slide[inert] { opacity: .55; }
.wdw-slider, .wdw-track { min-width: 0; max-width: 100%; }
@media (max-width: 575.98px) { .wdw-dot { width: 32px; } .wdw-dot[aria-current="true"]::before { width: 24px; } }
(function () {
function initTestimonialSlider() {
var track = document.getElementById('wdwTrack');
var dotsBox = document.getElementById('wdwDots');
var prev = document.getElementById('wdwPrev');
var next = document.getElementById('wdwNext');
var slider = document.getElementById('wdwSlider');
var pauseBtn = document.getElementById('wdwPause');
if (!track || !pauseBtn || !dotsBox || !prev || !next || !slider) return;
var slides = Array.prototype.slice.call(track.children);
var reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
var paused = false;
var userPaused = false;
var timer = null;
function perView() { return Math.max(1, Math.round(track.clientWidth / slides[0].offsetWidth)); }
function pages() { return Math.max(1, slides.length - perView() + 1); }
function index() { return Math.round(track.scrollLeft / (slides[0].offsetWidth + 20)); }
function go(i) {
var n = pages();
i = ((i % n) + n) % n;
track.scrollTo({ left: i * (slides[0].offsetWidth + 20), behavior: reduce ? 'auto' : 'smooth' });
}
function buildDots() {
dotsBox.innerHTML = '';
for (var i = 0; i < pages(); i++) {
var b = document.createElement('button');
b.type = 'button';
b.className = 'wdw-dot';
b.setAttribute('aria-label', 'Show testimonials from ' + (i + 1) + ' of ' + pages());
(function (n) { b.addEventListener('click', function () { go(n); }); })(i);
dotsBox.appendChild(b);
}
update();
}
function update() {
var cur = Math.min(index(), pages() - 1);
Array.prototype.forEach.call(dotsBox.children, function (d, i) {
if (i === cur) d.setAttribute('aria-current', 'true'); else d.removeAttribute('aria-current');
});
var pv = perView();
slides.forEach(function (s, i) {
var vis = i >= cur && i < cur + pv;
if (vis) { s.removeAttribute('inert'); s.removeAttribute('aria-hidden'); }
else { s.setAttribute('inert', ''); s.setAttribute('aria-hidden', 'true'); }
});
}
function start() {
if (reduce) return;
stop();
timer = setInterval(function () { if (!paused && !userPaused) go(index() + 1); }, 5000);
}
function stop() { if (timer) clearInterval(timer); timer = null; }
function setUserPaused(v) {
userPaused = v;
pauseBtn.setAttribute('aria-pressed', v ? 'true' : 'false');
pauseBtn.setAttribute('aria-label', v ? 'Resume automatic rotation' : 'Pause automatic rotation');
pauseBtn.querySelector('.wdw-ico-pause').classList.toggle('d-none', v);
pauseBtn.querySelector('.wdw-ico-play').classList.toggle('d-none', !v);
track.setAttribute('aria-live', v ? 'polite' : 'off');
}
if (reduce) setUserPaused(true);
pauseBtn.addEventListener('click', function () { setUserPaused(!userPaused); });
prev.addEventListener('click', function () { go(index() - 1); });
next.addEventListener('click', function () { go(index() + 1); });
track.addEventListener('scroll', update, { passive: true });
slider.addEventListener('mouseenter', function () { paused = true; });
slider.addEventListener('mouseleave', function () { paused = false; });
slider.addEventListener('focusin', function () { paused = true; });
slider.addEventListener('focusout', function () { paused = false; });
slider.addEventListener('keydown', function (e) {
if (e.key === 'ArrowRight') { go(index() + 1); }
if (e.key === 'ArrowLeft') { go(index() - 1); }
});
window.addEventListener('resize', buildDots);
buildDots();
start();
}
initTestimonialSlider();
})();
<section class="tc-stage">
<div class="tc-head">
<h1 class="fs-3xl fw-bold mb-3">Loved by thousands of customers</h1>
<p class="fg-secondary mb-0">Real words from people who made the switch.</p>
</div>
<div class="carousel tc" id="tcCarousel" data-bs-autoplay="true" aria-roledescription="carousel" aria-label="Customer testimonials">
<div class="carousel-inner">
<figure class="carousel-item tc-item" aria-roledescription="slide" aria-label="1 of 5">
<div class="tc-card">
<div class="tc-stars" role="img" aria-label="5 out of 5 stars"><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span></div>
<blockquote class="tc-quote">“I read dozens of reviews before buying, and the real ones were what convinced me. The laptop matched every detail they described.”</blockquote>
<figcaption class="tc-by"><img class="avatar avatar-img" src="https://i.pravatar.cc/96?img=32" width="48" height="48" alt="" loading="lazy"><span><span class="tc-name">Delbert Simonas</span><span class="tc-role">Product designer</span></span></figcaption>
</div>
</figure>
<figure class="carousel-item tc-item" aria-roledescription="slide" aria-label="2 of 5">
<div class="tc-card">
<div class="tc-stars" role="img" aria-label="5 out of 5 stars"><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span></div>
<blockquote class="tc-quote">“I expected to pay a premium and be disappointed. Instead the build quality and battery life beat machines twice the price.”</blockquote>
<figcaption class="tc-by"><img class="avatar avatar-img" src="https://i.pravatar.cc/96?img=12" width="48" height="48" alt="" loading="lazy"><span><span class="tc-name">Tikoh Amin</span><span class="tc-role">Freelance developer</span></span></figcaption>
</div>
</figure>
<figure class="carousel-item tc-item" aria-roledescription="slide" aria-label="3 of 5">
<div class="tc-card">
<div class="tc-stars" role="img" aria-label="5 out of 5 stars"><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span></div>
<blockquote class="tc-quote">“I spend about six hours a day in editing software. Exports are quick, the screen is accurate and the fans stay quiet.”</blockquote>
<figcaption class="tc-by"><img class="avatar avatar-img" src="https://i.pravatar.cc/96?img=15" width="48" height="48" alt="" loading="lazy"><span><span class="tc-name">Malachi Lensing</span><span class="tc-role">Video editor</span></span></figcaption>
</div>
</figure>
<figure class="carousel-item tc-item" aria-roledescription="slide" aria-label="4 of 5">
<div class="tc-card">
<div class="tc-stars" role="img" aria-label="4 out of 5 stars"><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star off"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span></div>
<blockquote class="tc-quote">“Excellent processing speed and a crystal clear display. Setup took ten minutes and I have not looked back since.”</blockquote>
<figcaption class="tc-by"><img class="avatar avatar-img" src="https://i.pravatar.cc/96?img=53" width="48" height="48" alt="" loading="lazy"><span><span class="tc-name">Christian Isla</span><span class="tc-role">Data analyst</span></span></figcaption>
</div>
</figure>
<figure class="carousel-item tc-item" aria-roledescription="slide" aria-label="5 of 5">
<div class="tc-card">
<div class="tc-stars" role="img" aria-label="5 out of 5 stars"><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span><span class="tc-star"><svg width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z"/></svg></span></div>
<blockquote class="tc-quote">“After ten years on an old laptop it was time to upgrade. Everything feels instant, and the keyboard is a joy to type on.”</blockquote>
<figcaption class="tc-by"><img class="avatar avatar-img" src="https://i.pravatar.cc/96?img=47" width="48" height="48" alt="" loading="lazy"><span><span class="tc-name">Lori Charles</span><span class="tc-role">Writer</span></span></figcaption>
</div>
</figure>
</div>
<div class="tc-controls">
<button type="button" class="btn-icon tc-arrow" data-bs-target="#tcCarousel" data-bs-slide="prev" aria-label="Previous testimonials"><span class="carousel-icon-prev"></span></button>
<div class="carousel-indicators"><button type="button" data-bs-target="#tcCarousel" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Testimonial 1"></button><button type="button" data-bs-target="#tcCarousel" data-bs-slide-to="1" aria-label="Testimonial 2"></button><button type="button" data-bs-target="#tcCarousel" data-bs-slide-to="2" aria-label="Testimonial 3"></button><button type="button" data-bs-target="#tcCarousel" data-bs-slide-to="3" aria-label="Testimonial 4"></button><button type="button" data-bs-target="#tcCarousel" data-bs-slide-to="4" aria-label="Testimonial 5"></button></div>
<button type="button" class="btn-icon tc-arrow" data-bs-target="#tcCarousel" data-bs-slide="next" aria-label="Next testimonials"><span class="carousel-icon-next"></span></button>
</div>
</div>
</section>
.tc-stage { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 3rem 1.25rem; background: var(--bs-bg-2); }
.tc-head { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; }
.tc { --bs-carousel-items: 3; --bs-carousel-items-gap: 1.25rem; --bs-carousel-gap: 1.75rem; width: 100%; max-width: 72rem; margin-inline: auto; }
.tc .carousel-inner { padding-block: .5rem 1rem; }
.tc-item { margin: 0; display: flex; }
.tc-card { display: flex; flex-direction: column; width: 100%; padding: 1.75rem; background: var(--bs-bg-body); border: 1px solid var(--bs-border-color); border-radius: 1.125rem; box-shadow: 0 10px 30px -20px rgb(0 0 0 / .3); }
.tc-stars { display: flex; gap: .125rem; margin-bottom: 1rem; }
.tc-star svg { fill: #f5a524; display: block; }
.tc-star.off svg { fill: var(--bs-border-color); }
.tc-quote { flex: 1; margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.65; }
.tc-by { display: flex; align-items: center; gap: .875rem; padding-top: 1.25rem; border-top: 1px solid var(--bs-border-color); }
.tc-by > span { display: flex; flex-direction: column; }
.tc-name { font-weight: 600; }
.tc-role { font-size: .8125rem; color: var(--bs-fg-3); }
.tc-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.tc-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--bs-border-color); background: var(--bs-bg-body); color: var(--bs-fg-body); cursor: pointer; }
.tc-arrow:hover { background: var(--bs-bg-1); }
.tc-arrow:focus-visible { outline: 3px solid color-mix(in oklch, var(--bs-primary-base) 45%, transparent); outline-offset: 2px; }
.tc .carousel-indicators { --bs-carousel-indicator-bg: var(--bs-primary-base); }
@media (width < 1024px) { .tc { --bs-carousel-items: 2; } }
@media (width < 640px) { .tc { --bs-carousel-items: 1; } }
Built on Bootstrap 6.0.0-alpha.1 (ES modules, no jQuery). Load Bootstrap through an import map and run the JavaScript as type="module" — the downloaded file is already set up that way. Alpha releases can still change class names.
Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.