Which Means
A feature tag leads into a chain of consequences, each introduced by a hinge phrase. A free, MIT-licensed Remotion text animation.
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-meansGood 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.
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"