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-brandon.tsc-root: changes the score, indicators and the solid Next button. The same value feeds--bs-primary-bg, sotheme-primaryfollows it.--tsc-staron.tsc-root: recolors the stars, the quote mark, the eyebrow and the autoplay progress fill.--tsc-bgand--tsc-surfaceon.tsc-root: set the page and card colors.data-bs-intervalon.tsc-carousel: shortens or lengthens the time per quote. Adddata-bs-intervalto a single.carousel-itemto 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-durationon.tsc-carousel: makes the crossfade slower or faster (0.5s here).- Replace
bi-star-fillwithbi-starand the.tsc-star-offclass to show a lower rating, and update thearia-labelon that.tsc-starselement.
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.