Tategaki Turn
Words drop in as vertical columns, then swing upright into one horizontal line. A free, MIT-licensed Remotion text animation.
In Remotion, Tategaki Turn drops the words of a tagline in as vertical columns, like Japanese vertical writing (tategaki), then swings them upright into one horizontal line. Use it for a tagline that plays on reading direction.
$ pnpm dlx shadcn@latest add @remocn/tategaki-turnGood 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"