Skip to content

Testimonial Carousel

Bootstrap 6 testimonial carousel with crossfading customer quotes, avatars, star ratings, an autoplay progress indicator and a play/pause control.

Also known as: testimonial slider, customer reviews carousel, quote slider with avatars, social proof carousel

Testimonial Carousel live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A warm, light testimonial section for Bootstrap 6: a rating summary on the left and a crossfading carousel of customer quotes on the right, each with an avatar, name, role and star rating. Use it on SaaS landing pages, pricing pages or anywhere social proof should sit close to a call to action.

How it works

The root .tsc-root pins data-bs-theme="light" and stacks two columns that sit side by side from 1024px. The intro column shows the average score, a .tsc-stars row and an avatar-stack of customer photos.

The quotes live in .tsc-carousel, a Bootstrap 6 .carousel.carousel-fade. Each slide is a <figure class="carousel-item tsc-slide"> holding a decorative SVG quote mark, the <blockquote class="tsc-quote"> and a <figcaption class="tsc-person"> with a Bootstrap 6 avatar avatar-lg. With .carousel-fade the slides share one grid cell, so the card always takes the height of the longest quote and nothing jumps.

data-bs-autoplay="true" starts the rotation on page load, and data-bs-interval="9000" gives each quote nine seconds. While it plays, Bootstrap 6 fills the active indicator like a progress bar. The .carousel-control-play-pause button swaps its icon and aria-label from the data-bs-pause-label and data-bs-play-label attributes. The script gets the instance with Carousel.getOrCreateInstance(). It calls pause() on focusin and cycle() on focusout, unless the visitor has stopped autoplay with the button.

Customization

  • --tsc-brand on .tsc-root: changes the score, indicators and the solid Next button. The same value feeds --bs-primary-bg, so theme-primary follows it.
  • --tsc-star on .tsc-root: recolors the stars, the quote mark, the eyebrow and the autoplay progress fill.
  • --tsc-bg and --tsc-surface on .tsc-root: set the page and card colors.
  • data-bs-interval on .tsc-carousel: shortens or lengthens the time per quote. Add data-bs-interval to a single .carousel-item to give that quote its own timing.
  • Remove data-bs-autoplay="true" and the play/pause button for a carousel that only moves when visitors click.
  • --bs-carousel-fade-duration on .tsc-carousel: makes the crossfade slower or faster (0.5s here).
  • Replace bi-star-fill with bi-star and the .tsc-star-off class to show a lower rating, and update the aria-label on that .tsc-stars element.

Use cases

  • SaaS landing pages: rotate customer quotes with avatars and star ratings beside an average score
  • Pricing pages: place social proof next to the call to action so visitors see praise before buying
  • Agency and service sites: crossfade client quotes automatically, with a play/pause button for visitors who want control
  • Course and product pages: show reviewer name, role and rating for each quote in one compact card

Accessibility

The carousel is a labelled region with aria-roledescription="carousel", and each slide is a group labelled "n of 4". Hidden slides use visibility: hidden, so screen readers only reach the visible quote. Star rows are images with a text label, and the indicators name the person they lead to. Autoplay pauses on hover and while focus is inside the card, and the play/pause button meets WCAG 2.2.2 (Pause, Stop, Hide). Clicking an arrow or indicator stops autoplay until the play button is pressed again, and the crossfade becomes instant under prefers-reduced-motion.

Bootstrap 6 notes

Bootstrap 5's data-bs-ride="carousel" is now data-bs-autoplay="true", carousel-control-prev buttons became plain buttons with .carousel-icon-prev, and btn-primary is btn-solid theme-primary. The avatar and avatar-stack components are new in Bootstrap 6. Built on 6.0.0-alpha.1, so details may still change. Portraits come from Unsplash; replace them with photos of your own customers. Icons come from Bootstrap Icons.

Testimonial Carousel at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Carousels
License
Free for personal and commercial use

Questions about this template

Can I use the Testimonial Carousel code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 6 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Testimonial Carousel – free Bootstrap 6 carousel template
Testimonial Carousel · free Bootstrap 6 carousel template

More Carousels

3D Coverflow Image Carousel – free Pure CSS carousel template

3D Coverflow Image Carousel

Coverflow-style image carousel with rotated 3D side photos, reflections, captions, dots, swipe and keyboard navigation in pure CSS and vanilla JS.

Scroll-Snap Carousel – free Pure CSS carousel template

Scroll-Snap Carousel

Native CSS scroll-snap carousel with arrow buttons, synced pill dots and keyboard support, enhanced by a few lines of vanilla JavaScript.

Infinite Auto-Scrolling Image Strip – free Pure CSS carousel template

Infinite Auto-Scrolling Image Strip

Seamless pure CSS marquee of landscape photos that loops forever, pauses on hover or focus and has a Pause/Play button.

Image Carousel with Thumbnails – free Tailwind CSS carousel template

Image Carousel with Thumbnails

Tailwind CSS image carousel with a clickable thumbnail strip, captions, swipe support, arrow-key navigation and optional looping.

Product Carousel with Thumbnails – free Bootstrap 6 carousel template

Product Carousel with Thumbnails

Bootstrap 6 product image carousel with a thumbnail rail, photo counter and arrows, next to a buy box with edition picker, quantity stepper and add to cart.

Image Carousel with Captions – free Bootstrap 6 carousel template

Image Carousel with Captions

Dark Bootstrap 6 photo carousel with overlay captions, location badges, indicators, prev/next controls and a live slide counter, built on scroll-snap.