Skip to content

    Browse components

    Cipher Reveal

    Scrambled glyphs resolve into the real text, on view or on hover.

    Access granted
    Open
    Customize

    start
    end
    random
    view
    hover

    Installation

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

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

    Usage

    import { CipherReveal } from "@/components/ui/cipher-reveal";
    
    <CipherReveal text="Access granted" revealDirection="random" />

    Props

    PropTypeDefaultDescription
    textstring"Access granted"Final text.
    speednumber40Ms between reveal steps.
    charactersstring"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&*"Glyphs used while scrambling.
    revealDirection"start" | "end" | "random""start"Order characters resolve in.
    trigger"view" | "hover""view"Start on scroll into view or on every hover.
    classNamestring—Extra classes for the root element.