Skip to content

    Browse components

    Surge Marquee

    Rows of oversized marquee text that drift on their own and surge or reverse with scroll speed.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/surge-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/surge-marquee.json

    Usage

    import { SurgeMarquee } from "@/components/ui/surge-marquee";
    
    <SurgeMarquee texts={["Scroll faster", "Feel the motion"]} baseVelocity={60} />

    Props

    PropTypeDefaultDescription
    textsstring[]["Scroll faster","Feel the motion","Built to move"]One row per string. Rows alternate direction.
    baseVelocitynumber60Drift speed in px per second while idle.
    velocityFactornumber0.4How much scroll speed adds to the drift.
    skewbooleantrueLean rows in the direction of travel.
    outlineAlternatebooleantrueOutline every other row.
    separatorstring"✦"Glyph between repeats.
    scrollContainerRefReactNode—Ref to the scrolling element. Defaults to the window.
    classNamestring—Extra classes for the root element.