Shed Weight
One line repeats at growing sizes, each cut redrawn with its own optical weight, with size labels. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/shed-weightUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ShedWeight } from "@/components/remocn/shed-weight";
const ShedWeightScene = () => <ShedWeight text="Sharp at any size." sizes={5} />;
export const RemotionRoot = () => (
<Composition
id="ShedWeight"
component={ShedWeightScene}
durationInFrames={135}
fps={30}
width={1280}
height={720}
/>
);The same line is stacked at a growing size ladder, each row drawing in under a hairline rule with a small point-size label, and every size uses its own optical cut. Pass text and sizes for the number of rows; showSizes toggles the labels. It takes a theme prop and ships light and dark.
Props14
| Prop | Type | Default |
|---|---|---|
| text | string"Sharp at any size." The line repeated down the size ladder. | |
| sizes | number6 How many rows in the ladder, from 2 to 9. | |
| showSizes | booleantrue Show the small point-size label beside each row. | |
| fontWeight | number460 Weight of every cut, on the font's weight axis. | |
| ratio | number1.42 Size step from one cut to the next. | |
| accent | string— Spot color for the largest row, its rule and label. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Override the background color; use "transparent" to composite over your own. | |
| fontFamily | string"Bricolage Grotesque" Typeface for the cuts; the optical-size axis needs a face that has one. Load the font in your project first. | |
| grain | booleantrue Film grain over the scene. | |
| 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 ground; the component ships both. | |
- textstring
The line repeated down the size ladder.
Default
"Sharp at any size." - sizesnumber
How many rows in the ladder, from 2 to 9.
Default
6 - showSizesboolean
Show the small point-size label beside each row.
Default
true - fontWeightnumber
Weight of every cut, on the font's weight axis.
Default
460 - rationumber
Size step from one cut to the next.
Default
1.42 - accentstring
Spot color for the largest row, its rule and label.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Override the background color; use "transparent" to composite over your own.
- fontFamilystring
Typeface for the cuts; the optical-size axis needs a face that has one. Load the font in your project first.
Default
"Bricolage Grotesque" - grainboolean
Film grain over the scene.
Default
true - 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 ground; the component ships both.
Default
"dark"