Skip to content
synccn

Text Animate

New

Words or letters rise into place in sequence.

Playground

Change the props and copy the code. The controls come from the component's TypeScript types.

Props

by
stagger60
import { TextAnimate } from "@/components/ui/aurora";<TextAnimate text="Build it once, theme it everywhere." />

Installation

$ pnpm dlx shadcn@latest add @synccn/text-animate

First time in this project? Connect synccn with one command.

Usage

import { TextAnimate } from "@/components/ui/aurora";<TextAnimate text="Ship faster" />

API reference

Generated from the component's TypeScript types, so it always matches the code.

TextAnimate

Words or letters rise into place one after another when shown.

  • textrequired
    string

    Text to animate.

  • by
    "word" | "letter"

    Default "word"

    Animate word by word or letter by letter.

  • stagger
    number

    Default 60

    Milliseconds between each part.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label, aria-pressed
  • Respects the reduced motion setting
  • Shows a visible focus ring for keyboard users