Shed Weight
One line repeats at increasing sizes down a type specimen ladder, each row redrawn with its own optical weight from the opsz axis and tagged with a point-size label. A free, MIT-licensed Remotion text animation.
In Remotion, Shed Weight repeats one line at increasing sizes, each row redrawn with a suited optical weight from the font's opsz axis and tagged with a size label. Use it for a type-focused beat that shows a typeface holding up from tiny to huge.
$ pnpm dlx shadcn@latest add @remocn/shed-weightHow to animate one line at increasing sizes with optical weight and size labels
One line repeated at increasingly larger sizes, each row redrawn with its own optical weight and tagged with a point-size label, is one component:
npx shadcn@latest add @remocn/shed-weight- Each row sets
fontVariationSettingsto"opsz" <n>, "wght" <fontWeight>, "wdth" 100, with the optical size spread evenly from 12 to 96 down the ladder. The label beside the row shows that value (12 pt…96 pt);showSizes={false}hides it. Tracking tightens as the size grows. - Rows step up in size by
ratio(1.42 by default).sizessets the row count, from 2 to 9. - Stagger: the first row starts at frame 4, then each row starts 6 frames after the one before at the top of the ladder, widening to 11 frames at the bottom. Each row's hairline rule draws in over 14 frames, starting 4 frames before its line rises out of a mask over 16 frames. All in 30 fps frames.
- Row widths are measured in the DOM before the first frame, so nothing reflows while it plays.
For one word whose weight or width animates use Axis Flex; to switch a word between typefaces use Font Cycle.
Good to know
- Length: 60 frames of motion at 30 fps (120 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 (delay, stagger, hold) 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: the component loads Bricolage Grotesque as a variable font itself (
loadVariableFontfrom@remotion/google-fonts/BricolageGrotesque), optical-size axis included, so nothing else is needed for the default. AfontFamilyof your own must be loaded in your project and needs anopszaxis, or every row gets the same cut.
Usage
// 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={270}
fps={60}
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"