Skip to content

Text Zoom Rotate

Pro

A word in a heading changes on a timer: the next word grows in from a little smaller with a short blur.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Zoom Rotate needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
33
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put it inside a heading and give it the words: it shows each one in turn.

hero-heading.tsx

TextZoomRotate

<div>
PropTypeDefaultDescription
pausedboolean—The pause of the user or the page (controlled).
defaultPausedboolean—The first pause when paused is not given (uncontrolled). Default false.
onPausedChange—Called when the pause changes.
pauseOnHoverboolean—Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true.
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
textsRequiredreadonly string[]—The texts to show in turn, at least two.
intervalnumber—Seconds each text stays. Default 2.5. 0 or less holds the current text.
reserveWidthboolean—Keep the width of the widest text, so the text after it never moves. Default false: the width slides to each new text.
indexnumber—The index of the text that shows (controlled). Each turn calls onIndexChange.
defaultIndexnumber—The index of the text that shows first (uncontrolled). Default 0.
onIndexChange—Called with the index of each new text.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Set reserveWidth when text after the word must stay still; leave it off to let the width glide to each new word.
  • Control index with onIndexChange when another part of the page follows the shown text.
Roll
reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · old letters roll up out of the line, new ones roll in from below, 20ms apart
Flip
reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · each letter turns up like the face of a cube
Slide
reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · the text moves 0.6em to the start side, the new one comes from the end side
Zoom
reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · the new text grows from 90% with a short blur
Fade
fade-exit · 90ms · ease-out (0, 0, 0.2, 1) · the old text fades, then the new one fades in over 400ms
Cut
instant · the new words show one by one, 80ms apart, with no fade
Width
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the box glides to the width of the new text
  1. AddedText Zoom Rotate.
Open the release