Skip to content

Text Spin Rolling

Pro

When the text changes, each letter spins through copies of itself to the new letter.

  • 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 Spin 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
24
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

TextSpinRolling

<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.
...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 Spin Rolling.
Open the release