Spine Turn
Chapter titles rise in big, then turn sideways 90 degrees into book spines that stack along a baseline before the next title appears, an agenda that builds a shelf. A free, MIT-licensed Remotion text animation.
In Remotion, Spine Turn raises each chapter title in big, then turns it sideways into a book spine that stacks along a baseline before the next title appears. Use it for an agenda or chapter sequence that builds up like a shelf.
$ pnpm dlx shadcn@latest add @remocn/spine-turnHow to turn chapter titles into book spines
Chapter titles that rise in large, turn 90 degrees into book spines and stack along a bottom rule, one after another, are one component:
npx shadcn@latest add @remocn/spine-turn- A hairline rule draws in, the first title rises in over 16 frames and holds for
hold(26). It then turns onto its spine overturn(26) frames, and the next title starts rising 14 frames into that turn. The last title stays large. - Length in 30 fps frames: 16 +
hold+ (titles − 2) × (hold+turn+ 14) + max(30,turn) for two or more titles, so 138 for the default three. Each extra title adds 66 frames at the defaults. - Title widths are measured on a canvas before the first frame (held with
delayRender). Spine size is fitted to the frame height and the longest title. There is no hard cap on the number of titles, but the spines take width on the left, so the hero title gets smaller with each one; check long agendas in the preview.
For a numbered list that highlights row by row use Index List; for one full beat per step, Three Steps.
Good to know
- Length: 138 frames of motion at 30 fps (276 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 (delay, stagger, hold) 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 IBM Plex Sans 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 { SpineTurn } from "@/components/remocn/spine-turn";
const SpineTurnScene = () => <SpineTurn titles={["Kickoff", "Deep dive", "Wrap-up"]} hold={26} />;
export const RemotionRoot = () => (
<Composition
id="SpineTurn"
component={SpineTurnScene}
durationInFrames={340}
fps={60}
width={1280}
height={720}
/>
);Each title rises in large over a hairline rule, holds, then rotates 90 degrees and shrinks into a spine at the bottom while the next title enters. The last title stays large. Pass titles and hold; accent and background override the colors, and it ships light and dark through theme.
Props11
| Prop | Type | Default |
|---|---|---|
| titles | string[]["Kickoff", "Deep dive", "Wrap-up"] Titles in order; each turns into a spine except the last. | |
| hold | number26 Frames each title holds before it turns. | |
| turn | number26 Frames for a title to turn onto its spine. | |
| fontWeight | number500 Weight of the titles. | |
| accent | string— Hero title color. Defaults to the theme accent. | |
| background | string— Stage color. Use "transparent" to composite over other layers. | |
| fontFamily | string"IBM Plex Sans" 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. | |
- titlesstring[]
Titles in order; each turns into a spine except the last.
Default
["Kickoff", "Deep dive", "Wrap-up"] - holdnumber
Frames each title holds before it turns.
Default
26 - turnnumber
Frames for a title to turn onto its spine.
Default
26 - fontWeightnumber
Weight of the titles.
Default
500 - accentstring
Hero title color. Defaults to the theme accent.
- backgroundstring
Stage color. Use "transparent" to composite over other layers.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"IBM Plex Sans" - 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"