Skip to content

    Browse components

    Afterimage Type

    A headline trailed by fading echo copies that lag behind it, drifting on a loop or chasing the pointer.

    Open
    Customize

    loop
    pointer

    Installation

    npx shadcn@latest add @glint-ui/afterimage-type

    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/afterimage-type.json

    Usage

    import { AfterimageType } from "@/components/ui/afterimage-type";
    
    <AfterimageType text="ECHO" mode="pointer" className="text-8xl font-black" />

    Props

    PropTypeDefaultDescription
    textstring"ECHO"Text to echo.
    echoesnumber7Number of trailing copies.
    lagnumber0.1How fast each echo catches up; lower is a longer trail.
    mode"loop" | "pointer""loop"Drift on a loop, or follow the pointer.
    amplitudenumber60Maximum travel of the lead text, in px.
    colorstring"#fafafa"Lead text color.
    echoColorstring"#a3e635"Echo color.
    outlinebooleantrueDraw echoes as outlines instead of solid copies.
    classNamestring—Extra classes for the root element.