Skip to content

Testimonials Marquee

Two rows of frosted testimonial cards scrolling infinitely in opposite directions with faded edges, pause on hover, star rating summary above. A static sr-only list carries the content for assistive tech.

glass/section/testimonials-marquee
Open ↗

Source

import { Star } from "lucide-react";
import { cn } from "@/lib/utils";

export interface TestimonialsMarqueeItem {
  quote: string;
  name: string;
  role: string;
}

export interface TestimonialsMarqueeProps {
  eyebrow?: string;
  title?: string;
  rating?: { score: string; count: string };
  testimonials?: TestimonialsMarqueeItem[];
  /** Seconds for one full loop of a row. */
  duration?: number;
  className?: string;
}

const DEFAULT_TESTIMONIALS: TestimonialsMarqueeItem[] = [
  { quote: "We cancelled our Monday status meeting. Halo updates cover it and people actually watch them.", name: "Amara Diallo", role: "VP Product, Fieldnote" },
  { quote: "The action items land in Linear with the right owner. That alone saves our PMs hours every week.", name: "Leo Park", role: "Head of PM, Stackline" },
  { quote: "Summaries are shockingly accurate, even with four accents and a lot of crosstalk.", name: "Sofia Rossi", role: "Design Lead, Mosaic" },
  { quote: "Ask-your-meetings is the feature I didn't know I needed. Found a decision from March in five seconds.", name: "Noah Klein", role: "CTO, Parcelhub" },
  { quote: "Our team spans nine time zones. Async video made standups finally work for everyone.", name: "Hana Sato", role: "Eng Manager, Remotely" },
  { quote: "Security review took one call. EU residency and redaction were exactly what legal wanted.", name: "Marc Dubois", role: "CISO, Finlo" },
  { quote: "Onboarding new hires is easier: they watch the recaps of the last month and they're caught up.", name: "Priya Nair", role: "COO, Brightlane" },
  { quote: "I stopped taking notes during customer calls. I just listen now, and the CRM gets updated.", name: "Tom Becker", role: "Account Executive, Nordly" },
];

const GRADIENTS = ["from-da-primary to-da-accent", "from-da-accent to-da-success", "from-da-danger to-da-primary", "from-da-warning to-da-danger"];

function Card({ t, i }: { t: TestimonialsMarqueeItem; i: number }) {
  return (
    <figure className="da-stroke w-[340px] shrink-0 rounded-da-lg bg-da-surface p-6 shadow-da-md backdrop-blur-da backdrop-saturate-150">
      <blockquote className="text-[15px] leading-relaxed">“{t.quote}”</blockquote>
      <figcaption className="mt-5 flex items-center gap-3 text-sm">
        <span aria-hidden className={cn("grid size-9 place-items-center rounded-full bg-gradient-to-br text-xs font-semibold text-white", GRADIENTS[i % GRADIENTS.length])}>
          {t.name
            .split(" ")
            .map((w) => w[0])
            .join("")}
        </span>
        <span>
          <span className="block font-semibold">{t.name}</span>
          <span className="text-da-muted-fg">{t.role}</span>
        </span>
      </figcaption>
    </figure>
  );
}

export function TestimonialsMarquee({
  eyebrow = "Loved by 12,000+ teams",
  title = "Meetings people are glad they skipped",
  rating = { score: "4.9", count: "1,200+ reviews" },
  testimonials = DEFAULT_TESTIMONIALS,
  duration = 60,
  className,
}: TestimonialsMarqueeProps) {
  const half = Math.ceil(testimonials.length / 2);
  const rows = [testimonials.slice(0, half), testimonials.slice(half)];

  return (
    <section className={cn("da-section overflow-hidden text-da-fg", className)} aria-labelledby="testimonials-marquee-title">
      <div className="da-container text-center">
        <p className="text-sm font-semibold text-da-primary">{eyebrow}</p>
        <h2 id="testimonials-marquee-title" className="mx-auto mt-3 max-w-2xl font-da-display text-[clamp(2rem,4.5vw,3.25rem)] leading-[1.08] font-semibold tracking-da-display text-balance">
          {title}
        </h2>
        <p className="mt-4 inline-flex items-center gap-2 text-sm text-da-muted-fg">
          <span className="flex text-da-warning" aria-hidden>
            {Array.from({ length: 5 }, (_, i) => (
              <Star key={i} className="size-4 fill-current" />
            ))}
          </span>
          <span>
            <strong className="font-semibold text-da-fg">{rating.score}/5</strong> from {rating.count}
          </span>
        </p>
      </div>

      {/* Static, accessible list for assistive tech; the marquee below is its decorative duplicate. */}
      <ul className="sr-only">
        {testimonials.map((t) => (
          <li key={t.name}>
            “{t.quote}” — {t.name}, {t.role}
          </li>
        ))}
      </ul>

      <div aria-hidden className="glass-marquee mt-14 flex flex-col gap-5 [mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent)]">
        {rows.map((row, r) => (
          <div key={r} className="flex overflow-hidden">
            <div
              className="glass-marquee-track flex w-max gap-5 pr-5"
              style={{ animationDuration: `${duration}s`, animationDirection: r === 1 ? "reverse" : "normal" }}
            >
              {[...row, ...row].map((t, i) => (
                <Card key={`${t.name}-${i}`} t={t} i={i + r} />
              ))}
            </div>
          </div>
        ))}
      </div>

      <style href="glass-marquee" precedence="default">{`
        @keyframes glass-marquee { from { translate: 0 0 } to { translate: -50% 0 } }
        .glass-marquee-track { animation: glass-marquee 60s linear infinite }
        .glass-marquee:hover .glass-marquee-track { animation-play-state: paused }
        @media (prefers-reduced-motion: reduce) { .glass-marquee-track { animation: none } }
      `}</style>
    </section>
  );
}

export default TestimonialsMarquee;

modules/glass/section/testimonials-marquee/index.tsx

Props

PropTypeDefaultDescription
eyebrowstring—Label above the title.
titlestring—Section title (h2).
rating{ score: string; count: string }—Rating summary under the title.
testimonialsTestimonialsMarqueeItem[]8 Halo customers{ quote, name, role }[]; split into two rows.
durationnumber60Seconds per loop.
classNamestring—Classes on the <section>.

Other testimonials variants in Glass

Testimonials in other art directions

Testimonials Big Quote

Full-bleed blue section showing one giant uppercase quote at a time with a tilted yellow metric card, author row, pressable prev/next buttons and bar-shaped pagination.

BrutalistTestimonials

Testimonials Logos

Case-study strip: four ruled cells, each with a company wordmark, a giant result number, its label and a one-line quote, alternating solid and paper tones.

BrutalistTestimonials

Testimonials Posts

Social-post wall: ruled cards styled like timeline posts (square colored avatar, handle, date, casual copy, reply/repost/like counts) in a 3-column grid with a 'see more' CTA.

BrutalistTestimonials

Testimonials Wall

Wall of quote cards in alternating solid colors with hard shadows, initials avatars and optional rotated metric stickers ("2× adoption").

BrutalistTestimonials

Testimonials Carousel

One large quote at a time with initials avatar and role, cross-fading between slides; progress dots, a 01 / 04 counter and round prev/next buttons, arrow-key navigation.

MinimalTestimonials

Testimonials Case Studies

Three case-study cards led by an oversized mono metric in indigo (−71% pages), a short quote, author and a Read the story link that makes the whole card clickable.

MinimalTestimonials

Testimonials Grid

Asymmetric testimonial grid: one large featured quote with a headline metric, flanked by two compact quotes, then a second row. Hairline cards, initials avatars, no logos needed.

MinimalTestimonials

Testimonials Posts

Masonry wall of social-post cards in 1–3 CSS columns: initials avatar, name and handle, post text, date and like count. Hairline cards, centered header.

MinimalTestimonials

Testimonials Grid

Hairline grid of short quotes (gap-px on a border-colored background) — 3 columns desktop, each cell with the quote and mono attribution; no cards, no shadows.

Mono CleanTestimonials

Testimonials List

Testimonials as an editorial ruled list: each row pairs a mono index + name/studio/city on the left with the quote on the right in a larger size; rows separated by hairlines.

Mono CleanTestimonials

Testimonials Marquee

Slow horizontal ticker of short quotes in large display type, separated by signal dots, between two ink rules; pauses on hover, static and wrapped with reduced motion. Pure CSS.

Mono CleanTestimonials

Testimonials Quote

One oversized pull quote set in the display face with a hanging opening quote mark, mono attribution under a short ink rule; lots of whitespace.

Mono CleanTestimonials

Testimonials Cards

Clean 3-column grid of bordered quote cards with company name header, quote, and initials avatar + role footer divided by a hairline.

Neo CorporateTestimonials

Testimonials Case Study

Featured customer story: bordered card split into a company quote (logo wordmark, quote, author) and a tinted column of three big result metrics with a “Read the case study” link.

Neo CorporateTestimonials

Testimonials Logos

Row of customer wordmark buttons acting as tabs; selecting one swaps the quote, author and key metric below.

Neo CorporateTestimonials

Testimonials Ratings

Review-site proof: rating tiles per platform (score + stars + review count), a row of award badges, and two review excerpts.

Neo CorporateTestimonials

Testimonials Carousel

Gentle one-at-a-time carousel on a sage band: serif quote cross-fades, round prev/next buttons, leaf-shaped position dots; no autoplay.

Organic SoftTestimonials

Testimonials Notes

Kind words as handwritten-feeling notes: slightly tilted paper/sage/clay cards with italic serif quotes and a small “pinned” dot, straightening on hover.

Organic SoftTestimonials

Testimonials Portrait

Single large testimonial: an arch-shaped sage “portrait” with big initials and a leaf, next to a large serif quote, attribution and a clay result chip.

Organic SoftTestimonials

Testimonials Wall

Masonry wall of soft rounded quote cards in mixed tints (CSS columns), each with a small leaf-dot avatar, name and role.

Organic SoftTestimonials

Testimonials Bubbles

Testimonials as a friendly group chat: alternating pastel speech bubbles with round avatars and names inside a big white phone-like card, next to the section title.

Soft FlatTestimonials

Testimonials Notes

Wall of pastel sticky notes, slightly rotated with a round periwinkle pin on top, each holding a bold short quote and author; notes straighten on hover.

Soft FlatTestimonials

Testimonials Slider

Horizontal slider of pastel testimonial cards with star ratings; round prev/next buttons move one card at a time and pill dots show the position.

Soft FlatTestimonials

Testimonials Spotlight

One big quote on a mint block with a giant quote mark, a flat shape avatar, three white stat bubbles and a row of customer wordmarks below.

Soft FlatTestimonials