Case Flip

Headline flips letter by letter from lowercase to uppercase, then settles into its final casing with one word in a gradient. A quiet word suddenly getting LOUD. A free, MIT-licensed Remotion text animation.

In Remotion, Case Flip makes a headline flip letter by letter from lowercase to uppercase and then settle into its final casing, like a quiet word suddenly getting loud. Use it for a title or tagline where the casing is the joke, with one word landing in a gradient accent over baseline and x-height guides.

Installation
$ pnpm dlx shadcn@latest add @remocn/case-flip

How to build this in Remotion

No need to write a per-letter flip with spring() or a typewriter loop. Install the component and pass the headline:

bash
npx shadcn@latest add @remocn/case-flip

Every glyph is its own element in the schedule in timeline.ts: a first wave flips each character to its other case, a second wave flips it to the casing you wrote, and each flip is an interpolate() with an Easing curve. Glyph widths are measured before the first frame (held with delayRender), so letters don't jump when their width changes. It doesn't use @remotion/layout-utils.

Good to know

  • Length: 120 frames of motion at 30 fps (240 at 60 fps) with the default props. The demo composition plays 150 frames, which adds a hold. Longer text takes longer: each wave runs (characters − 1) × stagger + flip frames. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, 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 Bricolage Grotesque (weight 500) itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.
  • The accent word takes a warm-to-blue gradient (#ffb36b, #e2457a, #3d4dff in dark). Pass accentWord="" to turn the gradient off; the word must appear in text exactly as written.
  • The final casing is whatever you type in text: "Launch it LOUD" ends with LOUD in capitals and the rest as written.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { CaseFlip } from "@/components/remocn/case-flip";
 
const CaseFlipScene = () => (
  <CaseFlip text="Make it LOUD" accentWord="LOUD" stagger={2} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="CaseFlip"
    component={CaseFlipScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Every glyph starts lowercase, then a wave flips them to uppercase one by one with a squash-and-spring, and a second wave flips each to its final casing. The accent word then fills with a gradient while the baseline and x-height guides fade out. Pass text in its final casing and accentWord; it ships light and dark through theme.

Props14

PropTypeDefault
text
string"Launch it LOUD"

The headline in its final casing.

accentWord
string"LOUD"

Word from `text` that lands in the accent gradient.

stagger
number2

Frames between neighboring glyphs in each wave.

flip
number10

Frames each glyph takes to flip.

pause
number12

Frames between the end of the first wave and the start of the second.

showGuides
booleantrue

Show the baseline and x-height guide lines.

accent
string"#3B5BFD"

Accent color for the highlighted word.

ink
string—

Text color as a hex; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Bricolage Grotesque"

Typeface for the copy. Bricolage Grotesque loads by default; load any other face 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.

theme
"dark" | "light""dark"

Ships light and dark.

speed
number1

Playback speed multiplier.

  • textstring

    The headline in its final casing.

    Default"Launch it LOUD"

  • accentWordstring

    Word from `text` that lands in the accent gradient.

    Default"LOUD"

  • staggernumber

    Frames between neighboring glyphs in each wave.

    Default2

  • flipnumber

    Frames each glyph takes to flip.

    Default10

  • pausenumber

    Frames between the end of the first wave and the start of the second.

    Default12

  • showGuidesboolean

    Show the baseline and x-height guide lines.

    Defaulttrue

  • accentstring

    Accent color for the highlighted word.

    Default"#3B5BFD"

  • inkstring

    Text color as a hex; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Bricolage Grotesque loads by default; load any other face in your project first.

    Default"Bricolage Grotesque"

  • 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

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1

Common questions

How do I make a headline flip from lowercase to uppercase letter by letter?

Install Case Flip with npx shadcn@latest add @remocn/case-flip and pass text in its final casing. Each letter flips to the other case in a wave, then back to how you wrote it.

Can I turn off the gradient word?

Yes. Pass an empty accentWord, or one that is not in text, and every letter stays the ink color.

Do I need to load the font?

No, it loads Bricolage Grotesque itself. Load your own font only if you pass fontFamily.