Run on

A breathless run-on sentence speeds up and scrolls away, then a full stop drops into a short promise line. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/run-on

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { RunOn } from "@/components/remocn/run-on";
 
const RunOnScene = () => (
  <RunOn
    text="Open the old project and relink the fonts and nudge every keyframe and render and spot a typo and render it all again"
    promise="Or change one line."
    highlight="one line"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="RunOn"
    component={RunOnScene}
    durationInFrames={400}
    fps={60}
    width={1280}
    height={720}
  />
);

The text runs in word by word at an accelerating pace, joiner words like and dimmed, and scrolls up as it fills the frame. A final accent full stop slams in, the wall drains away, and the stop slides down to end the promise line, whose highlight phrase lights up. Pass a long text without its final period, plus promise and highlight. It ships light and dark.

Props14

PropTypeDefault
text
string"Open last year’s project and relink the fonts and nudge every keyframe and render and spot a typo and render it all again"

Long sentence to run on; its trailing punctuation is removed.

promise
string"Or change one line."

Short line that follows once the long sentence drains away.

highlight
string"one line"

Phrase inside promise that turns accent-colored.

joiners
string[]["and", "then"]

Words dimmed within the run-on, such as and or then.

hold
number16

Frames the full stop holds before the sentence drains away.

fontWeight
number500

Weight of the copy.

accent
string—

Color of the full stop and highlight; overrides the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"DM Sans"

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

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

  • textstring

    Long sentence to run on; its trailing punctuation is removed.

    Default"Open last year’s project and relink the fonts and nudge every keyframe and render and spot a typo and render it all again"

  • promisestring

    Short line that follows once the long sentence drains away.

    Default"Or change one line."

  • highlightstring

    Phrase inside promise that turns accent-colored.

    Default"one line"

  • joinersstring[]

    Words dimmed within the run-on, such as and or then.

    Default["and", "then"]

  • holdnumber

    Frames the full stop holds before the sentence drains away.

    Default16

  • fontWeightnumber

    Weight of the copy.

    Default500

  • accentstring

    Color of the full stop and highlight; overrides the theme accent.

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

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

    Light or dark palette.

    Default"dark"