A headline whose words drift out of a heavy blur and settle into focus as it scrolls into view.
pnpm dlx shadcn@latest add @latheui/cinematic-textPart of Lathe Pro. Set up your project once with your license key: npx latheui init --key <key>. See Lathe Pro.
Cinematic Text is part of Lathe Pro
The preview is live and free to try. The source, the install and every assembly come with Pro: $79 once, with lifetime updates.
Depends on
Also accepts native attributes of the element it renders.
| Prop | Type | Default | Description |
|---|---|---|---|
| children* (required) | string | — | The text. It is split on spaces. |
| as | "h1" | "h2" | "h3" | "h4" | "p" | "span" | "div" | "p" | Element to render. |
| delay | number | 0 | Seconds before the first word starts. |
| stagger | number | 0.09 | Seconds between words. |
| duration | number | 0.9 | Seconds each word takes to settle. |
| blur | number | 14 | Blur radius in pixels each word starts from. |
| distance | number | 14 | Pixels each word drifts down. |
| once | boolean | true | Play once, or every time the text scrolls back into view. |
<CinematicText as="h1" stagger={0.16} duration={1.4} blur={24} className="text-7xl font-semibold">
Take your time.
</CinematicText><CinematicText once={false}>Seen again each time it scrolls into view.</CinematicText>