Testimonial Marquee
A smooth, infinite scrolling marquee component perfect for testimonials with dual rows moving in opposite directions and gradient edge fading.
Preview
Installation
Install the component using the CLI.
Usage
Import the component:
import { TestimonialMarquee, Marquee, TestimonialCard } from "@/components/marquee"Use it in your code:
const testimonials = [
{ name: "John Doe", username: "@johndoe", content: "Amazing product!" },
{ name: "Jane Smith", username: "@janesmith", content: "Love it!" },
];
<TestimonialMarquee
testimonials={testimonials}
speed={35}
pauseOnHover={true}
/>Props
| Property | Type | Default | Description |
|---|---|---|---|
testimonials* | array | - | Array of testimonial objects with name, username, content, and optional avatar. |
speed | number | 40 | Animation duration in seconds. Lower = faster. |
pauseOnHover | boolean | true | Whether to pause the marquee on hover. |
className | string | "" | Additional CSS classes. |