Skip to content

    Browse components

    Stagger Chars

    Hover and a wave of bouncing, tilting characters ripples through the text with a flash of accent color.

    Open
    Customize

    wave
    bounce
    spin
    flip
    start
    end
    center
    edges
    random

    Installation

    npx shadcn@latest add @glint-ui/stagger-chars

    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/stagger-chars.json

    Usage

    import { StaggerChars } from "@/components/ui/stagger-chars";
    
    <StaggerChars text="Hover me, gently" effect="wave" direction="center" />

    Props

    PropTypeDefaultDescription
    textstring"Hover me, gently"Text to animate.
    effect"wave" | "bounce" | "spin" | "flip""wave"Motion each character performs.
    direction"start" | "end" | "center" | "edges" | "random""start"Where the wave starts.
    staggernumber35Delay between characters, in ms.
    durationnumber700Duration of each character's motion, in ms.
    accentstring"#a3e635"Color flashed at the peak of the motion.
    classNamestring—Extra classes for the root element.