YoucefBnm Bnm

stagger text

Text 64

About

Animated component built with motion and tailwind.css to animate a series of letters with a staggered effect. ### Props - `words`: An array of strings representing the words to be animated. - `stagger`: Optional, A number representing the delay between the animations of each letter, if not provided it will be 0.05s between each letter. - `transition`: Optional, object defining the transition properties for the animation. - `direction`: Optional, A string indicating the direction of the animation, if not provided it will animate from bottom. - `className`: An optional string to apply additional tailwind classes. - `props`: any prop associated with "<div>" element. ### Behavior - When the component is in view, it triggers the animation to change from the `hidden` state to the `visible` state in an orchestration pattern. ### Example Usage ```tsx <StaggerText words={['Hello', 'world']} stagger={0.1} transition={{ duration: 0.5 }} direction=""top" className="my-custom-class" />

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds stagger text to your project and fits it to your theme.

Code

How stagger text is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { StaggerText } from "@/components/ui/stagger-text"

export function StaggerTextDemo() {
  return (
    <div className="container mx-auto h-svh place-content-center text-center">
      <StaggerText
        className="text-3xl font-medium"
        text="Create beautiful stagger animation"
        direction="bottom"
      />
      <StaggerText
        className="text-3xl font-medium"
        text="Create beautiful stagger animation"
        direction="top"
      />
    </div>
  )
}

Dependencies

More by YoucefBnm Bnm

View all
  • Animated Slideshow

    Animated Slideshow

    2.2K
  • Hero Gallery Scroll Animation

    Hero Gallery Scroll Animation

    1.5K
  • Animated Gallery

    Animated Gallery

    1.4K
  • Animated Video on Scroll

    Animated Video on Scroll

    1.4K
  • Animated Cards Stack

    Animated Cards Stack

    1.3K
  • Cards Stack

    Cards Stack

    1.1K
  • cta section with gallery

    cta section with gallery

    666
  • Hero Video

    Hero Video

    537

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    102
  • Motion Blur Text

    Motion Blur Text

    34
  • Text Reveal

    Text Reveal

    26
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Blur Reveal

    Blur Reveal

    296
  • Apple Hello Effect

    Apple Hello Effect

    605
  • Top Down Letters

    Top Down Letters

    19
  • Text Loop

    Text Loop

    305