Text

Text Reveal

The headline comes in letter by letter, and screen readers get the whole sentence.

Preview

Installation

Terminal
npx @usefluid/cli add text-reveal

Usage

TextReveal.tsx
import { TextReveal } from "./TextReveal";

<h1><TextReveal text="Hello, Ana." /></h1>

API reference

PropTypeDefaultDescription
textstring—
playbooleantrue
staggernumber28Milliseconds between letters.

Keyboard and screen readers

The whole text is read at once.

Every colour comes from the --fluid-* variables, and the piece is yours to change.

How it is made

The spring is turned into a CSS linear() curve, so each letter animates with CSS alone, no JavaScript per frame. Each letter waits a little longer than the one before. Words never break in the middle.

For your agent

For your agent

Add Text Reveal to my project with the Fluid library. Use TextReveal on a section headline, once per page. Read my project first. Use my logo, my colours and my font through the --fluid-* variables. Keep 44px touch targets, visible focus and reduced motion. If I have no SVG logo, ask before making one up.