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.

Installation
$ pnpm dlx shadcn@latest add @remocn/spine-turn

How 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:

bash
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 over turn (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, Sequence lengths) 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-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: loads IBM Plex Sans itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.

Usage

tsx
// 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

PropTypeDefault
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.

    Default26

  • turnnumber

    Frames for a title to turn onto its spine.

    Default26

  • fontWeightnumber

    Weight of the titles.

    Default500

  • 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.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier.

    Default1

  • theme"dark" | "light"

    Light or dark ground; ships both.

    Default"dark"

Common questions

How do I make agenda titles rise large, then rotate 90 degrees into book spines in Remotion?

Install Spine Turn with npx shadcn@latest add @remocn/spine-turn and pass titles, for example ["Kickoff", "Deep dive", "Wrap-up"]. Each title rises in large, holds for hold frames, then rotates 90 degrees and shrinks into a book spine lined up along the bottom line, while the next title rises in. There is no need to stagger Sequences or measure text with @remotion/layout-utils yourself.

How many titles can it take?

There is no hard limit. Each spine takes width on the left, so the large title gets smaller with every title added; check a long agenda in the preview.

Can I change how fast a title turns?

Yes. turn sets the frames for the 90-degree rotation (26 by default) and hold how long each title stays large before it turns. speed scales the whole scene.

  • Index List: a numbered list that highlights row by row.
  • Three Steps: one full beat per step, with a number.
  • Fade Through: titles replace each other with no history.