Figure to Label
A halftone-dot figure resolves on a ruled card, then collapses so a label word types out beside it. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/figure-to-labelUsage
// src/Root.tsx
import { Composition } from "remotion";
import { FigureToLabel } from "@/components/remocn/figure-to-label";
const FigureToLabelScene = () => <FigureToLabel value="$6.4B" word="valuation" eyebrow="Series B" />;
export const RemotionRoot = () => (
<Composition
id="FigureToLabel"
component={FigureToLabelScene}
durationInFrames={276}
fps={60}
width={1280}
height={720}
/>
);A figure built from a halftone dot field pops onto a ruled card, a wave sweeps across and the dots resolve left to right into solid digits. The card then collapses, the figure takes the accent color and the label word types out beside it with a caret, under the Remocn mark. Pass value, word and an optional eyebrow. It ships light and dark through theme; ground and groundParams change the animated background.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props16
| Prop | Type | Default |
|---|---|---|
| value | string"$6.4B" The figure shown on the card, such as $6.4B. | |
| word | string"valuation" Label word typed out beside the figure. | |
| eyebrow | string"" Text beside the mark above the line; hidden when empty. | |
| accent | string— Accent color of the figure; defaults to the theme accent. | |
| ink | string— Text color; defaults to the theme ink. | |
| background | string— Stage background color; overrides the theme ground. | |
| fontFamily | string"Onest" Typeface for the copy. Load the font in your project first. | |
| fontWeight | number300 Weight of the figure and the typed word. | |
| stagger | number2 Frames between letters as the word types in. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| 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. | |
| ground | GshPresetId— Preset id for the animated gradient ground. | |
| groundParams | Partial<GradientParams>— Overrides for the ground gradient parameters. | |
- valuestring
The figure shown on the card, such as $6.4B.
Default
"$6.4B" - wordstring
Label word typed out beside the figure.
Default
"valuation" - eyebrowstring
Text beside the mark above the line; hidden when empty.
Default
"" - accentstring
Accent color of the figure; defaults to the theme accent.
- inkstring
Text color; defaults to the theme ink.
- backgroundstring
Stage background color; overrides the theme ground.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Onest" - fontWeightnumber
Weight of the figure and the typed word.
Default
300 - staggernumber
Frames between letters as the word types in.
Default
2 - logoReact.ReactNode
Replaces the remocn mark.
- 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" - groundGshPresetId
Preset id for the animated gradient ground.
- groundParamsPartial<GradientParams>
Overrides for the ground gradient parameters.