Which Means
Benefit chain for Remotion: one feature name leads into a chain of benefits, each step linked to the last by a hinge phrase like which means, ending on a highlighted payoff.
In Remotion, Which Means shows a feature tag followed by a chain of consequences, each introduced by a hinge phrase such as which means. Use it for a feature beat that turns one capability into a chain of benefits.
$ pnpm dlx shadcn@latest add @remocn/which-meansHow to build this in Remotion
You don't need TransitionSeries or fitText from @remotion/layout-utils. Install the component and pass your feature and steps:
npx shadcn@latest add @remocn/which-meansIt is one scene. The feature name and its label rise in, and the first step is written beside them. Each next step is written under the hinge phrase while the step before rises into the cause slot above it, dims, and its trailing comma turns into a full stop; the step before that leaves. The last step lights up in the accent color. Steps after the second spread over the clip, and the schedule lives in timeline.ts.
Good to know
- Length: 143 frames of motion at 30 fps (286 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 Geologica itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. hingeis one string shared by every link of the chain; there is no per-step hinge. To vary it, change the hinge text per step in your copy of the file.- Only two steps are on screen at once (cause and effect), so a long chain does not pile up. Each step wraps into balanced lines, at most three, and the type shrinks until the tallest pair fits.
- Steps after the second are spaced 44–72 frames apart, fitted to the clip. Trailing punctuation on each step is handled for you.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { WhichMeans } from "@/components/remocn/which-means";
const WhichMeansScene = () => (
<WhichMeans name="Live preview" label="New" steps={["Every edit shows up as you type,", "the first render is the one you ship."]} />
);
export const RemotionRoot = () => (
<Composition
id="WhichMeans"
component={WhichMeansScene}
durationInFrames={380}
fps={60}
width={1280}
height={720}
/>
);A labeled feature name appears, then the hinge phrase and each step in steps unfold as a chain of consequences. Pass name, label, steps and hinge to describe your own feature. It ships in light and dark through the theme prop.
Props14
| Prop | Type | Default |
|---|---|---|
| name | string"Live preview" Feature name shown as the headline. | |
| label | string"New" Small tag shown next to the name. | |
| steps | string[]DEFAULT_STEPS Consequence lines revealed in order. | |
| hinge | string"which means" Connector phrase shown between steps. | |
| stagger | number2 Frames between words as a step is written. | |
| hold | number76 Frames the last step holds before the end. | |
| 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"Geologica" 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. | |
- namestring
Feature name shown as the headline.
Default
"Live preview" - labelstring
Small tag shown next to the name.
Default
"New" - stepsstring[]
Consequence lines revealed in order.
Default
DEFAULT_STEPS - hingestring
Connector phrase shown between steps.
Default
"which means" - staggernumber
Frames between words as a step is written.
Default
2 - holdnumber
Frames the last step holds before the end.
Default
76 - 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
"Geologica" - 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"
Common questions
How do I animate one capability turning into a chain of benefits joined by a phrase like which means?
Install Which Means with npx shadcn@latest add @remocn/which-means, pass the feature as name, a tag such as New as label, the benefits in order as steps, and the connecting phrase as hinge (default which means).
Can each step use a different hinge phrase?
Not through props: hinge is a single string for the whole chain. Edit the copied component if you need a different phrase per step, such as so or which means.
How many steps can I use, and how long can each be?
Any number; the default is three. Longer steps wrap to up to three lines and the text gets smaller, so a short clause per step reads best.
Related effects
- Less More: a short before-and-after contrast.
- Tldr on Top: a long paragraph with a summary on top.
- Feature Trio: three benefit words in a row.
- Verbed: the name defined as a word.