Stem Stretch
The stems of a figure stretch into tall gradient stripes, then a caption rises beneath. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/stem-stretchUsage
// src/Root.tsx
import { Composition } from "remotion";
import { StemStretch } from "@/components/remocn/stem-stretch";
const StemStretchScene = () => (
<StemStretch value="4 hours" label="back, every week" steps={4} />
);
export const RemotionRoot = () => (
<Composition
id="StemStretch"
component={StemStretchScene}
durationInFrames={270}
fps={60}
width={1280}
height={720}
/>
);The figure rises in, then in steps springy snaps its vertical stems stretch apart into long stripes with a gradient glow. The caption rises in word by word below. Pass value, label and steps; it ships light and dark through theme.
Props14
| Prop | Type | Default |
|---|---|---|
| value | string"4 hours" Heading text whose stems stretch, such as a number and a unit. | |
| label | string"back, every week" Caption that rises in word by word under the figure. | |
| steps | number4 Number of snaps the stretch is split into. | |
| snapGap | number12 Frames between the stretch's snaps. | |
| stagger | number3 Frames between label words. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Instrument Sans" Typeface for the copy. 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" Color theme, "dark" or "light". | |
- valuestring
Heading text whose stems stretch, such as a number and a unit.
Default
"4 hours" - labelstring
Caption that rises in word by word under the figure.
Default
"back, every week" - stepsnumber
Number of snaps the stretch is split into.
Default
4 - snapGapnumber
Frames between the stretch's snaps.
Default
12 - staggernumber
Frames between label words.
Default
3 - accentstring
Accent color for highlights and small marks.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Instrument Sans" - 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"
Color theme, "dark" or "light".
Default
"dark"