Back to Components

Testimonial Marquee

A smooth, infinite scrolling marquee component perfect for testimonials with dual rows moving in opposite directions and gradient edge fading.

Preview

Loading...

Installation

Install the component using the CLI.

$npx shadcn@latest add https://ankurz.me/r/marquee.json

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

PropertyTypeDefaultDescription
testimonials*array-Array of testimonial objects with name, username, content, and optional avatar.
speednumber40Animation duration in seconds. Lower = faster.
pauseOnHoverbooleantrueWhether to pause the marquee on hover.
classNamestring""Additional CSS classes.