Staaarter

Marquee Scroll Wall

A continuously auto-scrolling horizontal row of quote cards. The list is duplicated once and animated with a pure CSS @keyframes translateX loop, so the row appears to scroll forever with no visible seam and no client-side JavaScript.

By Staaarter Team
Testimonials
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/marquee-scroll-wall.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/testimonials/testimonial13.tsx instead.

Usage

The file also exports testimonial13Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Testimonial13, testimonial13Demo } from "@/components/blocks/testimonials/testimonial13";

export default function Page() {
  return <Testimonial13 {...testimonial13Demo} />;
}

Props

PropTypeDefaultDescription
headingstringundefinedOptional heading above the scrolling row.
descriptionstringundefinedOptional supporting text below the heading.
quotesMarqueeQuote[]noneThe quote cards to scroll. The component duplicates this array once internally to build the seamless loop; pass only the unique set.
classNamestringnoneExtra classes for the outer section element.

Types

type MarqueeQuote = {
  quote: string;
  name: string;
  role: string;
};

Behavior notes

  • The scroll motion is 100% CSS: an inline <style> tag defines a @keyframes translateX(0) -> translateX(-50%) animation applied to a flex row containing the quote list rendered twice back to back, so the loop point is visually identical to the start and reads as continuous.
  • There is no JavaScript scroll/timer logic anywhere in this component, by design, so it is safe to render inside the block preview iframe without any window/document access.
  • Hovering the track pauses the animation via a plain CSS :hover rule (animation-play-state: paused) — this is real, but it is a CSS-only affordance, not a React event handler.
  • prefers-reduced-motion: reduce disables the animation entirely, leaving a static row of the first copy of the cards.
  • The second, duplicated copy of the card list is marked aria-hidden so screen readers only announce each testimonial once, not twice.