Skip to content

Block 290 of 297

Testimonial Carousel

One large quote at a time, crossfading with a soft lift, picked from a row of avatar tabs. Rotation is optional.

Puck key
TestimonialCarouselBlock
Export
testimonialCarouselBlock
React component
<TestimonialCarousel />
Files
components/puck/testimonial-carousel-block.tsx
components/puck/testimonial-carousel.client.tsx
Dependencies
gsap
License
MIT (GSAP has its own license)

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

One large serif quote at a time with the speaker's name, role and photo, chosen from a row of avatar tabs. Quotes crossfade with a slight lift. Rotation is off by default and, when turned on, shows a timer ring and a Pause button. On desktop the heading sits in a left column; on phones it stacks above the quote.

  • Family, client or patient voices on a program page
  • Donor or volunteer testimonials on a giving page
  • Student and alumni quotes for admissions
Writing the content
  • Testimonials allows 1 to 8, and entries with no Quote are skipped. Two to four sentences per quote reads best at this size.
  • Photo URL takes a square headshot; when blank, the tab shows the person's initials.
  • If you turn on Rotate automatically, pick a longer Time per quote for longer quotes.
  • Leave Heading blank to let the quotes stand alone.
Accessibility
  • Avatar tabs use the tab pattern (role="tab", aria-selected, aria-controls), labelled with each person's name, and arrow keys move between them (WCAG 4.1.2).
  • Rotation is off by default; when on, it pauses on hover and focus, has a Pause button, and never runs for reduced-motion visitors (WCAG 2.2.2).
  • The live region stays quiet while rotating and announces changes only when a visitor picks a quote.
Customizing the code
  • Requires gsap and testimonial-carousel.client.tsx. The timer ring's length comes from interval, and the crossfade tween is in the go() function.
  • The quote mark and tab ring use Tailwind indigo-600; the quote size is text-2xl sm:text-3xl lg:text-4xl.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Testimonialsarray
  • Rotate automaticallyradio
  • Time per quoteselect