Skip to content

    Browse components

    Line Roll

    Lines of text roll endlessly through a soft-masked window, the active line sharp and its neighbours blurred.

    Open
    Customize

    left
    center
    right

    Installation

    npx shadcn@latest add @glint-ui/line-roll

    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/line-roll.json

    Usage

    import { LineRoll } from "@/components/ui/line-roll";
    
    <p>Made for <LineRoll items={["designers", "engineers", "founders"]} /></p>

    Props

    PropTypeDefaultDescription
    itemsstring[]["designers","engineers","founders","storytellers","dreamers"]Lines to loop through.
    intervalnumber2200Ms between steps.
    durationnumber800Ms for one slide.
    visibleLinesnumber3Lines visible in the window.
    dimInactivebooleantrueBlur and dim inactive lines.
    align"left" | "center" | "right""left"Text alignment.
    classNamestring—Extra classes for the root element.