Saasflare UI
Components

Marquee

Infinite-scrolling row of content (logos, testimonials) — pure CSS, no animation frames.

Installation

npx shadcn@latest add https://ui.saasflare.io/r/marquee.json
pnpm add @saasflare/ui

Usage

Loading…
"use client"import { Marquee } from "@saasflare/ui"const logos = ["Acme", "Globex", "Initech", "Umbrella", "Hooli", "Stark"]/** Infinite logo ticker that pauses on hover. */export function Demo() {    return (        <div className="flex h-64 w-full items-center rounded-lg border bg-fd-card">            <Marquee className="w-full">                {logos.map((name) => (                    <div                        key={name}                        className="flex h-12 items-center rounded-md border bg-background px-6 text-sm font-semibold text-muted-foreground"                    >                        {name}                    </div>                ))}            </Marquee>        </div>    )}

Testimonials

Loading…
"use client"import { Marquee } from "@saasflare/ui"const quotes = [    { quote: "Saasflare saved us three months of setup.", author: "Maya, CTO at Globex" },    { quote: "We launched our MVP in a single weekend.", author: "Dev, Founder at Initech" },    { quote: "The billing module just works.", author: "Priya, Eng Lead at Hooli" },]/** Slower, reversed marquee for testimonial cards. */export function Demo() {    return (        <div className="flex h-64 w-full items-center rounded-lg border bg-fd-card">            <Marquee reverse speed={60} className="w-full">                {quotes.map((t) => (                    <figure                        key={t.author}                        className="w-72 rounded-lg border bg-background p-4"                    >                        <blockquote className="text-sm">“{t.quote}”</blockquote>                        <figcaption className="mt-2 text-xs text-muted-foreground">                            {t.author}                        </figcaption>                    </figure>                ))}            </Marquee>        </div>    )}

API Reference

Prop

Type

On this page