Story Dip
Three timestamped story lines enter in columns: a snag drops low and dims, then the resolution climbs and lights up. A free, MIT-licensed Remotion text animation.
In Remotion, Story Dip lays out a three-beat anecdote with a timestamp on each beat: the setup enters, the snag drops low and dims, then the fix climbs and lights up. Use it for a customer or founder story told as setup, problem and resolution.
$ pnpm dlx shadcn@latest add @remocn/story-dipGood to know
- Length: 132 frames of motion at 30 fps (264 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 Afacad 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 { StoryDip } from "@/components/remocn/story-dip";
const StoryDipScene = () => (
<StoryDip
setup={{ slug: "Wednesday, 4:00 PM", line: "The film was one render away." }}
snag={{ slug: "4:05 PM", line: "Then the client sent a new logo." }}
resolution={{ slug: "4:15 PM", line: "One prop later, every scene had it." }}
/>
);
export const RemotionRoot = () => (
<Composition
id="StoryDip"
component={StoryDipScene}
durationInFrames={360}
fps={60}
width={1280}
height={720}
/>
);Three timestamped lines enter side by side, or in two columns on a tall frame. The setup appears first, the snag then drops lower and dims, and the resolution rises to the top and turns accent-colored. Pass setup, snag and resolution as { slug, line }, where slug is the small timestamp. It ships light and dark.
Props13
| Prop | Type | Default |
|---|---|---|
| setup | { slug: string; line: string }DEFAULT_SETUP First beat: a small timestamp and the line. | |
| snag | { slug: string; line: string }DEFAULT_SNAG Second beat; it drops lower and dims. | |
| resolution | { slug: string; line: string }DEFAULT_RESOLUTION Third beat; it climbs to the top in the accent color. | |
| fontWeight | number400 Weight of the story lines. | |
| dim | number0.62 Opacity the snag beat dims to as it falls. | |
| accent | string— Color of the timestamps and the lit resolution line. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Afacad" 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 for the whole timeline. | |
| theme | "dark" | "light""dark" Light or dark palette. | |
- setup{ slug: string; line: string }
First beat: a small timestamp and the line.
Default
DEFAULT_SETUP - snag{ slug: string; line: string }
Second beat; it drops lower and dims.
Default
DEFAULT_SNAG - resolution{ slug: string; line: string }
Third beat; it climbs to the top in the accent color.
Default
DEFAULT_RESOLUTION - fontWeightnumber
Weight of the story lines.
Default
400 - dimnumber
Opacity the snag beat dims to as it falls.
Default
0.62 - accentstring
Color of the timestamps and the lit resolution line.
- inkstring
Text color; 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
"Afacad" - 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 for the whole timeline.
Default
1 - theme"dark" | "light"
Light or dark palette.
Default
"dark"