Avara UI

Animated Typography

A highly accessible, semantic typography engine that supports all standard HTML text tags with advanced, staggered visual effects and deep layout controls.
Building animated text that scales responsively and doesn't break screen readers is tricky. Standard staggered character animations often result in screen readers spelling out words letter-by-letter. This AnimatedTypographyBlock automatically wraps your content in an sr-only tag for assistive technologies, while orchestrating the visual animations on hidden child spans.
It features a Smart Sizing Engine. You can maintain semantic SEO value (like rendering an h1) but visually override the size using either a Tailwind class (3xl) or a hardcoded CSS value (24px, 2rem).
Every example remounts when it scrolls into view, so the animation plays. Reach for the reload button in a preview's header to replay it.

Typewriter

Types each word, holds it, deletes it and moves on behind a blinking caret, as in the Hero's typing title. The prefix re-centres as the word changes, just like the hero.

variant"typewriter"
types and deletes each word in turn.
prefixPosition"fluid"
the default here: the text before the word re-centres as it types and deletes.

Installation

New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.

Install Animated Typography

npx shadcn@latest add @algorize-ui/animated-typography

components/custom/blocks/AnimatedTypographyBlock.tsx is written into your project. Copy any snippet from a Usage tab above and it runs.

Install dependencies

Nothing beyond the shared setup — Animated Typography needs only the cn helper and lucide-react, which the installation guide already put in place.

Examples

Typewriter, Fixed Prefix

The same typewriter with the prefix held in place: the line keeps the longest word's width, so only the typed word moves.

prefixPosition"fixed"
reserves the longest word's width, so the text before it never moves.
variant"typewriter"
types and deletes each word in turn.

Letter Bounce Word Rotator

The word leaves letter by letter; the next springs in one letter at a time, as in the Hero's bounce title.

variant"letter-bounce"
rotates words, each letter springing in and out.
words["Interfaces", …]
the words to cycle through after titlePrefix.

Word Flip

The word slides up and out, then the next slides up in from below, as in the homepage hero.

variant"word-flip"
slides words vertically through a clipped slot.
interval2400
milliseconds each word stays.

Blur Swap

The outgoing word lifts away into a blur as the next sharpens out of one, as in the Hero Carousel headline.

variant"blur-swap"
cross-fades words through a blur.
words["Interfaces", …]
the words to cycle through after titlePrefix.

Blur Rise

The whole line rises out of a soft blur, as the Collage Hero heading does.

variant"blur-rise"
lifts the line in while it comes into focus.
align"center"
centers the text aligned to the middle.

Color Wipe

An accent copy of the text is unclipped left to right over the foreground, the technique behind the Honeycomb Hero title.

variant"color-wipe"
sweeps the text color from foreground to the accent.
color"primary"
the color the wipe ends in.

Color Reveal Staggered Sweep

Characters start in muted gray and transition left-to-right into active theme color.

variant"color-reveal"
transitions text from gray to active theme color from left to right.
align"center"
centers the text aligned to the middle.

Wavy Float Sine Wave

Continuous sine-wave floating vertical movement across characters.

variant"wavy-float"
animates characters in a smooth sine wave float.
align"center"
centers the text aligned to the middle.

3D Perspective Flip

Words enter with 3D rotateX perspective and spring settling.

variant"3d-perspective-flip"
flips words in 3D around their bottom edge.
align"center"
centers the text aligned to the middle.

Elastic Spring Overshoot

Playful spring bounce entrance scaling up with overshoot physics.

variant"elastic-spring"
bounces words with elastic spring curve.
align"center"
centers the text aligned to the middle.

Spotlight Focus Reveal

Localized spotlight beam effect revealing text out of heavy blur.

variant"spotlight-reveal"
focuses text from dark blur to sharp text.
align"center"
centers the text aligned to the middle.

Split Stagger Entrance

Alternating letters slide in from top and bottom directions.

variant"split-stagger"
splits alternating characters from top/bottom offsets.
align"center"
centers the text aligned to the middle.

Underline Stroke Draw

Synchronized liquid SVG underline stroke drawing beneath text.

variant"underline-draw"
animates an SVG path underline beneath text.
align"center"
centers the text aligned to the middle.

Matrix Scramble Decryption

Cyberpunk symbol scrambling effect resolving to crisp text.

variant"matrix-scramble"
scrambles text through glyphs before resolving.
align"center"
centers the text aligned to the middle.

Features

Discover the key capabilities that make this component an excellent choice for modern, animated user interfaces.

14 Animation Patterns

From Matrix decryption to liquid underlines, plus every hero title effect — letter bounce, typewriter, word flip, blur swap, blur rise and color wipe.

Highly Accessible

Automatically renders an sr-only version for screen readers while displaying child visual spans.

Responsive Sizing

Supports semantic tags (h1-h6, p) with Tailwind size overrides and pixel/rem custom sizing.

Hardware Accelerated

GPU-optimized CSS keyframes and spring physics for smooth 60fps animations.

Props Reference

ComponentPropTypeDefaultDescription
AnimatedTypographyBlocktextstring—
The text content to render, and what screen readers announce. Staggered variants split this string to animate word-by-word or character-by-character.
AnimatedTypographyBlockas
"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "blockquote"
"p"
The semantic HTML tag to render.
AnimatedTypographyBlockvariant
"matrix-scramble" | "color-reveal" | "wavy-float" | "3d-perspective-flip" | "elastic-spring" | "spotlight-reveal" | "split-stagger" | "underline-draw" | "letter-bounce" | "typewriter" | "word-flip" | "blur-swap" | "blur-rise" | "color-wipe"
"matrix-scramble"The 14 animation patterns applied to the text. letter-bounce, typewriter, word-flip and blur-swap rotate through words.
AnimatedTypographyBlockwordsReactNode[][text]
The words the rotating variants cycle through. Plain strings animate letter by letter; other nodes move whole. text is still what screen readers announce, so set it to the first word.
AnimatedTypographyBlockintervalnumber2400
Milliseconds each word stays on the rotating variants. The typewriter holds a finished word this long instead, 1800 by default.
AnimatedTypographyBlockprefixPosition"fixed" | "fluid"
"fluid" for typewriter, "fixed" otherwise
Whether the text before the rotating words holds still. fixed reserves the longest word's width; fluid follows the word on show, so a centred line re-centres as the word types, deletes or swaps.
AnimatedTypographyBlockindexnumber
—
Shows words[index] instead of stepping on a timer — for words kept in step with something else, like a carousel's slides. The typewriter keeps its own time.
AnimatedTypographyBlockchildrenReactNode
—
Rich content for blur-rise and color-wipe in place of text, such as a heading with an <em> in it.
AnimatedTypographyBlockplaybooleantrue
false renders the text at rest; the animation starts when it turns true. For reveals that wait on scrolling into view.
AnimatedTypographyBlockbarebooleanfalse
Drops the block's own weight, size, colour, alignment and padding, so className and the parent set the type — for composing it into a section heading.
AnimatedTypographyBlock
titlePrefix / titleSuffix
string—
Static text either side of the animated part, e.g. titlePrefix="Build " before a rotating word.
AnimatedTypographyBlockalign"left" | "center" | "right" | "justify""left"Controls the CSS text alignment of the underlying container.