Skip to content

    Browse components

    Marquee

    Infinite logo loop that eases to a stop on hover, grows the logo under the cursor and fades its edges. Works with any content.

    Open
    Customize
    left
    right

    Installation

    npx shadcn@latest add @glint-ui/marquee

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/marquee.json

    Usage

    import { Marquee } from "@/components/ui/marquee";
    
    <Marquee
      items={logos.map((l) => <img key={l.name} src={l.src} alt={l.name} className="h-8" />)}
      speed={60}
      hoverSpeed={0}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of nodes to loop (logos, text, cards).
    speednumber60Scroll speed in px per second.
    hoverSpeednumber0Speed while hovered, px per second. 0 glides to a stop.
    direction"left" | "right""left"Scroll direction.
    gapnumber48Px between items.
    scaleOnHoverbooleantrueGrow the hovered item.
    fadeEdgesbooleantrueFade out both edges.
    ariaLabelstring"Logos"Accessible name for the list.
    classNamestring—Extra classes for the root element.