Testimonials
Testimonial Slider
Wide cards with a quote and a photo slide past on their own, with a row of names that fills up as a timer and arrows to step through.
npx motionsnack add testimonial-sliderCustomize
Background
<TestimonialSlider />Props
15 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { quote: string; name?: string; role?: string; company?: string; image?: { src: string; alt?: string } }[] | 5 sample testimonials | Testimonials in the slider. `company` is the short name in the row under it. |
| buttonColor | string | near-black / near-white in dark | Colour of the filled arrow button. |
| buttonTextColor | string | white / near-black in dark | Icon colour of the filled arrow button. |
| buttonRadius | number | fully round | Corner radius of the arrow buttons in px. |
| kicker | string | 'Testimonials' | Small label above the headline. Leave empty to hide it. |
| title | string | 'Real stories shared
by our customers' | Headline. Use \n for line breaks. |
| description | string | 'Hear it from the people who use the product every day to run their work and grow what they do.' | Paragraph next to the headline. Leave empty to hide it. |
| autoplay | boolean | true | Move to the next card on its own. Pauses while the pointer is over the section. |
| interval | number | 5 | Seconds a card stays before the slider moves on. |
| cardWidth | number | 680 | Width of a card on a wide screen. |
| imageSide | 'right' | 'left' | 'right' | Side of the photo inside a card. |
| showNames | boolean | true | Names under the slider that jump to their card. |
| background | string | '#000000' | Section background. |
| radius | number | 24 | Corner radius of the cards. |
| gap | number | 16 | Space between the cards. |
About Testimonial Slider
A label and a two-line headline sit on the left with a short paragraph on the right. Below, wide cards with a quote on one side and a photo on the other run off the edge of the page and move on by themselves; the active card is at full strength while the others are dimmed and their photos slightly zoomed. Under the slider a row of names jumps to any card, the active name underlined by a line that fills over the interval, next to previous and next arrows. It scrolls natively, so swiping works, and it pauses while the pointer is over it.
What's included
- Cards running off the page edge
- Autoplay with a filling timer line
- Names row and arrows
- Native swipe with snapping
- Light and dark look
- Respects reduced motion
- Type
- Animated testimonials section for Next.js
- Library
- Sections · Testimonials
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add testimonial-slider