Search...
K

Stagger Text

A text with a stagger animation on hover

Documentation

pnpm dlx @t7blocks/cli add stagger-text

Usage

import { StaggerText } from "@/components/T7blocks/StaggerText";

export default function Home() {
  return (
    <div className="h-screen flex items-center justify-center">
      <StaggerText 
       text="Hover over me"
       fontSize="5rem"
       fontWeight={700}
       offsetIncrement={0.015}
      />
    </div>
  );
}

Properties

PropertyTypeDefaultDescription
textstring"Hover me"Text to display
tagElementType"span"HTML tag to render (e.g., 'h1', 'p', 'span')
colorstring"#131313"Text color
fontSizestring"1em"Font size (e.g., "1em", "2.5rem", "72px")
fontWeightstring400Font weight
offsetIncrementnumber0.01Delay increment between characters (in seconds)
transitionDurationstring"0.6s"Duration of the animation (e.g., "0.6s", "1200ms")
transitionEasingstring"cubic-bezier(0.625, 0.05, 0, 1)"Easing function for the animation
classNamestring""Additional CSS classes

Related resources

Dot Launch Button

Knob Toggle