Reveal

Text that animates in by character, word, or line.

Text enters with a quiet preset: fade, blur, slide, or scale. Split by character, word, line, or the whole string.

Quiet motion, one piece at a time.

420ms
35ms
tsx
import { Reveal } from "@/components/motion/reveal"export function Example() {  return (    <Reveal      animation="blur-up"      by="character"      duration={420}      stagger={35}      className="text-2xl font-medium tracking-wide text-foreground sm:text-3xl"    >      Quiet motion, one piece at a time.    </Reveal>  )}

Installation

npx @arctis-sh/@arctis-sh/ui@latest add reveal

Usage

import { Reveal } from "@/components/motion/reveal"
<Reveal animation="blur-up" by="character">  Quiet motion, one piece at a time.</Reveal>

API Reference

Reveal

PropTypeDefault
textstring—
childrenReactNode—
animationfade, blur, blur-up, slide-up, slide-left, scaleblur-up
bycharacter, word, line, textcharacter
durationnumber420
staggernumber35
delaynumber0
playnumber0
startOnViewbooleantrue
oncebooleantrue
asElementTypep
segmentClassNamestring—
classNamestring—

Also accepts the other native element attributes for as. duration and stagger are in milliseconds. Pass string children or text. Bump play to replay.