Skip to content

    Browse components

    Unblur Heading

    Words or letters drift in from above or below, sharpening out of a heavy blur as they scroll into view.

    Open
    Customize

    words
    letters
    top
    bottom

    Installation

    npx shadcn@latest add @glint-ui/unblur-heading

    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/unblur-heading.json

    Usage

    import { UnblurHeading } from "@/components/ui/unblur-heading";
    
    <UnblurHeading text="Isn't this so cool?!" animateBy="words" direction="top" />

    Props

    PropTypeDefaultDescription
    textstring"Isn't this so cool?!"Text to animate.
    animateBy"words" | "letters""words"Animate each word or each letter.
    direction"top" | "bottom""top"Where pieces come from.
    delaynumber90Delay between pieces, in ms.
    durationnumber900Duration of each piece, in ms.
    oncebooleantrueAnimate only the first time; off replays on every re-entry.
    as"p" | "h1" | "h2" | "h3" | "span" | "div""p"Element to render.
    classNamestring—Extra classes for the root element.