Core Sum
A monospace figure sums up to 2,097,152 beside a divider and a small caption. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/core-sumUsage
// src/Root.tsx
import { Composition } from "remotion";
import { CoreSum } from "@/components/remocn/core-sum";
const CoreSumScene = () => <CoreSum value={2097152} parts={8} label="frames per night, every core busy" />;
export const RemotionRoot = () => (
<Composition
id="CoreSum"
component={CoreSumScene}
durationInFrames={150}
fps={30}
width={1280}
height={720}
/>
);A column of partial figures counts up row by row, each labelled like 'core 01'. They then merge pairwise, level by level, until a single total remains, which fills with the accent colour and shows the main caption. Pass value, parts, label and partLabel. The length shown is for the default of 8 parts. It ships light and dark through the theme prop.
Props16
| Prop | Type | Default |
|---|---|---|
| value | number2097152 The final total the parts add up to. | |
| parts | number8 Number of partial rows, rounded to a power of two from 2 to 16. | |
| prefix | string"" Text placed before every number, such as a currency sign. | |
| suffix | string"" Text placed after every number, such as a unit. | |
| label | string"frames per night, every core busy" Caption beside the final total. | |
| partLabel | string"core" Word used to label the partial rows, e.g. 'core 01'. | |
| accent | string— Colour the final total fills with. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Stage colour; pass 'transparent' to layer over other footage. | |
| fontFamily | string"Saira" Typeface for the copy. Load the font in your project first. | |
| stagger | number2 Frames between the partial rows as they count in. | |
| mergeGap | number16 Frames between one merge step and the next. | |
| 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; 1 is the designed pace. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
- valuenumber
The final total the parts add up to.
Default
2097152 - partsnumber
Number of partial rows, rounded to a power of two from 2 to 16.
Default
8 - prefixstring
Text placed before every number, such as a currency sign.
Default
"" - suffixstring
Text placed after every number, such as a unit.
Default
"" - labelstring
Caption beside the final total.
Default
"frames per night, every core busy" - partLabelstring
Word used to label the partial rows, e.g. 'core 01'.
Default
"core" - accentstring
Colour the final total fills with.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Stage colour; pass 'transparent' to layer over other footage.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Saira" - staggernumber
Frames between the partial rows as they count in.
Default
2 - mergeGapnumber
Frames between one merge step and the next.
Default
16 - 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; 1 is the designed pace.
Default
1 - theme"dark" | "light"
Ships light and dark.
Default
"dark"