Skip to content

    Browse components

    Reveal Text

    Letters rise out of a mask as they scroll into view; hover and a photo shows through the type.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/reveal-text

    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/reveal-text.json

    Usage

    import { RevealText } from "@/components/ui/reveal-text";
    
    <RevealText text="WANDER" image="/photos/coast.jpg" />

    Props

    PropTypeDefaultDescription
    textstring"WANDER"Text to reveal.
    imagestring"https://picsum.photos/seed/glint-8/1200/600"Image shown through the letters on hover.
    staggernumber45Delay between letters, in ms.
    durationnumber900Slide duration of each letter, in ms.
    classNamestring—Extra classes for the root element.