Skip to content

    Browse components

    Glyph Hover

    Letters near the cursor dissolve into flickering glyphs and settle back into the original text, strongest right under the pointer.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/glyph-hover

    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/glyph-hover.json

    Usage

    import { GlyphHover } from "@/components/ui/glyph-hover";
    
    <GlyphHover radius={100} className="font-mono text-2xl" />

    Props

    PropTypeDefaultDescription
    textstring"Move your cursor across this paragraph. Every letter it passes dissolves into noise for a moment, then snaps right back into place as if nothing happened."Text to render.
    radiusnumber100Pointer radius that scrambles characters, in px.
    durationnumber1200How long a character under the pointer keeps scrambling, in ms.
    speednumber50Ms between glyph swaps.
    scrambleCharsstring"!<>-_/[]{}=+*^?#01"Glyphs used while scrambling.
    scrambleColorstring"#a3e635"Color of scrambled glyphs.
    classNamestring—Extra classes for the root element.