Skip to content

Testimonial Carousel

Bootstrap 5 testimonial carousel with serif quote cards, pill indicators, arrow buttons and an accessible pause control.

Also known as: testimonial slider, customer quotes carousel, review quote slider, client testimonials section

Testimonial Carousel live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 testimonial carousel that rotates customer quotes in a single warm, serif-styled card with pill indicators, round arrow buttons and a pause control. Use it on landing pages, pricing pages or anywhere one quote at a time should get full attention.

How it works

The root is section.tq-section. Inside it, #tq-carousel is a standard Bootstrap carousel slide with the extra class tq-carousel, which caps its width through --tq-max-width. Each carousel-item contains a figure.tq-slide: an inline SVG quote mark (.tq-mark) that overlaps the top edge, a blockquote.tq-quote and a figcaption.tq-author with an initials avatar (.tq-avatar, plus the --alt and --dark color modifiers), name and role.

Below the slides, .tq-controls is a flex row with the previous button, the .tq-indicators and the next button, all driven by Bootstrap's data-bs-slide and data-bs-slide-to attributes. The CSS moves .carousel-indicators out of its usual absolute position and turns the active dot into a wide accent pill.

The script handles the .tq-pause button. Bootstrap restarts the cycle after hover and indicator clicks, so setPaused() disposes the instance and creates a new one with either { ride: false, interval: false } or the original interval. Rotation also pauses while keyboard focus is inside the carousel and resumes on focusout. Without JavaScript from this file the carousel still works with Bootstrap's own data API.

Customization

  • data-bs-interval="7000" on #tq-carousel: change the time each quote stays visible, in milliseconds; the script reads the same value when resuming.
  • --tq-accent and --tq-accent-soft in .tq-section: recolor the quote badge, kicker, active indicator, hover state and avatar.
  • --tq-bg and --tq-card in .tq-section: change the section background and the card color.
  • --tq-quote-font in .tq-section: switch the heading and quote typeface, for example to a sans-serif stack.
  • --tq-max-width in .tq-section: make the card wider or narrower.
  • border-radius: 2rem 2rem 2rem 0.5rem in .tq-slide: change the speech-bubble corner shape.
  • Add carousel-fade next to slide on #tq-carousel to cross-fade instead of sliding.

Use cases

  • Landing pages: rotating customer quotes in one warm card build trust without taking much space
  • Pricing pages: one quote at a time gets full attention near the buying decision
  • Marketing sites: pill indicators and arrow buttons let visitors browse through the quotes
  • Accessible sites: a pause control stops the automatic rotation for people who need more time

Accessibility

The carousel uses aria-roledescription="carousel" and each slide is a group with aria-roledescription="slide" and a "1 of 3" label. Arrow and indicator buttons have descriptive aria-label values, and the active indicator gets aria-current. The pause button uses aria-pressed and updates its label. While paused, .carousel-inner becomes a polite live region so manual slide changes are announced. Users who prefer reduced motion start in the paused state, and Bootstrap already removes the slide transition for them. All buttons show a clear focus-visible outline.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. For a second carousel on the same page, give it a new id and update every data-bs-target.

Testimonial Carousel at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Testimonials
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 5 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@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>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Testimonial Carousel – free Bootstrap 5 testimonial template
Testimonial Carousel · free Bootstrap 5 testimonial template

More Testimonials

Testimonial with Large Portrait Photo – free Tailwind CSS testimonial template

Testimonial with Large Portrait Photo

Featured Tailwind CSS testimonial with a large customer portrait, offset frame, serif quote, star rating and result metrics.

Single Testimonial with Large Quote – free WordPress testimonial template

Single Testimonial with Large Quote

A single testimonial for the block editor with a large centered customer quote, round portrait, name, role and company wordmark on a deep navy background.

Testimonial Cards with Avatars – free WordPress testimonial template

Testimonial Cards with Avatars

Testimonial cards for the block editor: three customer reviews with five-star ratings, round portrait avatars, names and roles on a warm light background.

Customer Testimonials Section for Shopify – free Shopify testimonial template

Customer Testimonials Section for Shopify

A Shopify section for customer quotes with star ratings, avatars and linked products, shown as a grid or a scrolling row with previous and next buttons.

Scroll-Snap Testimonial Slider – free Pure CSS testimonial template

Scroll-Snap Testimonial Slider

Horizontally scrolling testimonial cards using CSS scroll snap, with star ratings, avatars and accessible previous and next buttons.