Line Cascade

A large figure is drawn from cascading gradient lines that pile up and snap into place, with a caption. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/line-cascade

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { LineCascade } from "@/components/remocn/line-cascade";
 
const LineCascadeScene = () => (
  <LineCascade value="240" caption="launch films rendered with remocn today" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="LineCascade"
    component={LineCascadeScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Gradient lines rain down and land as flutes on a floor, drawing the figure's strokes until they snap into the solid numeral and a caption rises beneath. Pass value (digits plus a few symbols such as ., +, % and k) and caption; it ships light and dark through theme.

Props14

PropTypeDefault
value
string"240"

Figure to draw, digits plus a few symbols such as dot, plus and percent.

caption
string"launch films rendered with remocn today"

Small line of text that rises under the figure.

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"Hanken Grotesk"

Typeface for the copy. Load the font in your project first.

fontWeight
number400

Weight of the caption.

lineSpacing
number6.5

Distance between the falling lines, in pixels at 720p; smaller packs the figure denser.

logo
React.ReactNode—

Replaces the remocn mark.

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

    Figure to draw, digits plus a few symbols such as dot, plus and percent.

    Default"240"

  • captionstring

    Small line of text that rises under the figure.

    Default"launch films rendered with remocn today"

  • 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"Hanken Grotesk"

  • fontWeightnumber

    Weight of the caption.

    Default400

  • lineSpacingnumber

    Distance between the falling lines, in pixels at 720p; smaller packs the figure denser.

    Default6.5

  • logoReact.ReactNode

    Replaces the remocn mark.

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