Stem Stretch

The stems of a figure stretch into tall gradient stripes, then a caption rises beneath. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/stem-stretch

Usage

tsx
// 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

PropTypeDefault
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.

    Default4

  • snapGapnumber

    Frames between the stretch's snaps.

    Default12

  • staggernumber

    Frames between label words.

    Default3

  • 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.

    Defaulttrue

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • theme"dark" | "light"

    Color theme, "dark" or "light".

    Default"dark"