Which Means
A feature tag leads into a chain of consequences, each introduced by a hinge phrase. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/which-meansUsage
// 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={190}
fps={30}
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"