Case Flip
A headline flips glyph by glyph from lowercase to uppercase and back to its final casing. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/case-flipUsage
// 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
| Prop | Type | Default |
|---|---|---|
| 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. 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. | |
| 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.
Default
2 - flipnumber
Frames each glyph takes to flip.
Default
10 - pausenumber
Frames between the end of the first wave and the start of the second.
Default
12 - showGuidesboolean
Show the baseline and x-height guide lines.
Default
true - 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. Load the font in your project first.
Default
"Bricolage Grotesque" - 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 - theme"dark" | "light"
Ships light and dark.
Default
"dark" - speednumber
Playback speed multiplier.
Default
1