Tategaki Turn
Reading-direction tagline for Remotion: words drop in as vertical columns, like Japanese tategaki, then each column rotates 90 degrees into a single horizontal line.
For a tagline that starts as vertical columns of words and rotates into a single horizontal line, playing on reading direction, use Tategaki Turn. Each word drops in letter by letter as a vertical column, like Japanese vertical writing (tategaki), then every column swings 90 degrees on a spring, the letters staying upright, and the words travel into one line while the type grows.
$ pnpm dlx shadcn@latest add @remocn/tategaki-turnHow to build this in Remotion
You don't need rotate() with a hand-picked transform-origin and measureText() from @remotion/layout-utils. Install the component and pass the phrase:
npx shadcn@latest add @remocn/tategaki-turnThe letters are measured on a canvas once the font has loaded (under delayRender). Each word's letters sit on a column that pivots around its first letter: a spring() takes the column's angle from vertical to horizontal, while the column's anchor travels to its place in the final line, and the size eases from column scale to line scale. Only the letters' positions rotate, not the glyphs, so every letter stays readable throughout. Every letter is laid out once at its final place and carried there by transform, so the motion does not step on whole pixels.
Good to know
- Length: 86 frames of motion at 30 fps (172 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Zen Kaku Gothic New itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { TategakiTurn } from "@/components/remocn/tategaki-turn";
const TategakiTurnScene = () => <TategakiTurn text="Read it both ways." highlight={3} />;
export const RemotionRoot = () => (
<Composition
id="TategakiTurn"
component={TategakiTurnScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);Each word of text drops in as a vertical column, letter by letter. After a hold, the columns swing 90 degrees and travel into a single horizontal line while the type scales up. The highlight word, the last by default, takes the accent color; it ships light and dark through theme.
Props12
| Prop | Type | Default |
|---|---|---|
| text | string"Read it both ways." The phrase; each word becomes a vertical column. | |
| highlight | number— Index of the word set in the accent color. Defaults to the last. | |
| hold | number16 Frames the vertical columns hold before they turn. | |
| stagger | number5 Frames between words dropping into their columns. | |
| accent | string— Highlight color. Defaults to vermilion. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Stage color. Overrides the theme background. | |
| fontFamily | string"Zen Kaku Gothic New" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier. | |
| theme | "dark" | "light""dark" Light or dark ground; ships both. | |
- textstring
The phrase; each word becomes a vertical column.
Default
"Read it both ways." - highlightnumber
Index of the word set in the accent color. Defaults to the last.
- holdnumber
Frames the vertical columns hold before they turn.
Default
16 - staggernumber
Frames between words dropping into their columns.
Default
5 - accentstring
Highlight color. Defaults to vermilion.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Stage color. Overrides the theme background.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Zen Kaku Gothic New" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier.
Default
1 - theme"dark" | "light"
Light or dark ground; ships both.
Default
"dark"
Common questions
How do I turn vertical columns of words into a horizontal line in Remotion?
Install Tategaki Turn with npx shadcn@latest add @remocn/tategaki-turn and render <TategakiTurn text="Read it both ways." />. Each word becomes a column. Budget at least 86 frames at 30 fps (172 at 60 fps), plus a hold.
Does it need Japanese text?
No. It is made for Latin text: the vertical columns borrow the look of tategaki, and the default font, Zen Kaku Gothic New, is loaded with its Latin subset only. Pass fontFamily for another face and load it in your project.
How long do the columns stay vertical?
hold is the number of frames the columns rest before they turn, 16 by default.
Related effects
- Typewriter: a long phrase typed out naturally.
- Kinetic Center Build: words build into a phrase from the center.
- Turnabout: a sentence flips into its mirror image word by word.
- Staggered Fade Up: a simple staggered entrance with no rotation.