Skip to content

    Browse components

    Mask Wipe

    A big heading wiped into view by a feathered mask sweep, with a gradient or photo flowing through the letters.

    Open
    Customize

    view
    loop

    Installation

    npx shadcn@latest add @glint-ui/mask-wipe

    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/mask-wipe.json

    Usage

    import { MaskWipe } from "@/components/ui/mask-wipe";
    
    <MaskWipe text="Made to be seen" colors={["#bef264", "#22d3ee", "#a78bfa"]} />

    Props

    PropTypeDefaultDescription
    textstring"Made to be seen"Heading text.
    colorsstring[]["#bef264","#22d3ee","#a78bfa","#f472b6"]Gradient stops flowing through the letters.
    imagestring""Image URL to fill the letters with instead of the gradient.
    revealDurationnumber1.8Seconds for the reveal sweep.
    flowDurationnumber6Seconds per gradient or image-pan cycle.
    trigger"view" | "loop""view"Reveal once on view, or sweep in and out forever.
    outlinebooleantrueFaint ghost of the letters before they are revealed.
    as"h1" | "h2" | "h3" | "p" | "span" | "div""h2"Element to render.
    classNamestring—Extra classes for the root element.