Skip to content

Text Alphabet Rolling

Pro

When the text changes, each letter rolls through the letters before the new one, like an odometer.

  • 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 Alphabet Rolling 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
25
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.

Pass the text as children. A new text rolls only the letters that change.

upload-status.tsx

TextAlphabetRolling

<div>
PropTypeDefaultDescription
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
childrenRequiredstring—The text to show. A new text rolls each letter column from its old letter to the new one.
trigger"none""mount""view"—The first roll, which lands on the same text: view (default) the first time it is on screen, mount at once, or none (only a new text rolls). Before it, the text shows at rest.
order"center""edges""end""random""start"—The order in which the columns start: center (default, from the middle out), start, end, edges, or random (a fixed shuffle of each text).
direction"down""up"—up (default): the new letter comes in from below. down: from above.
granularity"grapheme""word"—grapheme: a column per letter at any length. Default: per letter up to 40 letters, else per word. A joining script (Arabic) always rolls per word.
charactersstring—The drum a column rolls through, in order. Default: the alphabet of each target (capitals, small letters, or digits). A letter not on the drum passes copies of itself.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Pass the text as children; a new text rolls only the columns whose letter changed.
  • Leave trigger at "view" for a headline that rolls once when it comes into view.
  • Set trigger="none" for a status or a value: only a new text rolls.
Roll
roll · each column rolls 5 to 7 lines to its new letter on a spring, all started within 0.25s
First roll
roll · 9 to 11 lines, 50ms apart, when the text comes into view
Width
panel · a column slides to the width of its new letter; added letters grow from 0
Fade
fade · an added letter fades in, a removed one fades out as it shrinks
  1. AddedText Alphabet Rolling.
Open the release