What Sticks
A column of claims dims one by one until a single line stays highlighted. A free, MIT-licensed Remotion text animation.
In Remotion, What Sticks stacks a column of marketing claims and dims them one at a time until only one line stays bright and highlighted. Use it for a message-discipline beat that shows only one claim survives the viewer's memory.
$ pnpm dlx shadcn@latest add @remocn/what-sticksGood to know
- Length: 170 frames of motion at 30 fps (340 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 Rubik 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 { WhatSticks } from "@/components/remocn/what-sticks";
const WhatSticksScene = () => (
<WhatSticks lines={["Scenes install with one command.", "You own every file."]} keep={1} />
);
export const RemotionRoot = () => (
<Composition
id="WhatSticks"
component={WhatSticksScene}
durationInFrames={460}
fps={60}
width={1280}
height={720}
/>
);A stack of claims appears while timeline captions mark what you remember tonight, tomorrow and next week. Lines fade away until one is left bright. Pass lines, and use keep to pick the survivor. It ships in light and dark through the theme prop.
Props13
| Prop | Type | Default |
|---|---|---|
| lines | string[]DEFAULT_LINES Claims shown in the column. | |
| keep | number— Index of the line that stays highlighted; defaults to about 70 percent down. | |
| moments | string[]DEFAULT_MOMENTS Time captions marking each stage of forgetting. | |
| forget | number[]— Indices of lines that fade out first. | |
| stagger | number5 Frames between lines as the column builds. | |
| accent | string— Accent color override; falls back to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background color override; falls back to the theme background. | |
| fontFamily | string"Rubik" 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" Ships light and dark; picks the palette. | |
- linesstring[]
Claims shown in the column.
Default
DEFAULT_LINES - keepnumber
Index of the line that stays highlighted; defaults to about 70 percent down.
- momentsstring[]
Time captions marking each stage of forgetting.
Default
DEFAULT_MOMENTS - forgetnumber[]
Indices of lines that fade out first.
- staggernumber
Frames between lines as the column builds.
Default
5 - accentstring
Accent color override; falls back to the theme accent.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Background color override; falls back to the theme background.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Rubik" - 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"
Ships light and dark; picks the palette.
Default
"dark"