Run on

A breathless run-on sentence types in faster and faster and scrolls away, then a full stop drops in to end it and a short reassuring promise line appears. A free, MIT-licensed Remotion text animation.

In Remotion, Run On writes one exhausting run-on sentence that accelerates and scrolls away, then a full stop drops in to end it and a short reassuring line takes its place. Use it for a pain-point beat before the fix.

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

How to animate an accelerating run-on sentence that ends with a full stop in Remotion

A pain-point beat where one long sentence speeds up, scrolls off, and is cut short by a full stop is one component. You don't need to measure the text with @remotion/layout-utils or hand-tune Easing.in curves for the acceleration. Install it and pass your sentence and the answer:

bash
npx shadcn@latest add @remocn/run-on
  • The text runs in word by word at an accelerating pace and scrolls up as it fills the frame; joiners (and, then by default) are dimmed so the sentence reads as one breath.
  • An accent full stop slams in and holds for hold frames, the wall of text drains away, and the stop slides down to end the short promise line, whose highlight phrase lights up.
  • Pass text without its final period; the component adds the stop.
  • Word widths are measured on a canvas before the first frame (held with delayRender), so nothing reflows while it scrolls.

If the pain is a repeating loop of short steps, use Loop Break; to cross a chore list out instead, use Filler Cut.

Good to know

  • Length: 188 frames of motion at 30 fps (376 at 60 fps) with the default props. A longer text takes longer. That is the minimum for its Sequence; add your own hold on top. The Usage example below is a 60 fps composition with a hold, so its durationInFrames is longer than twice the motion. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project; nothing else is needed at runtime.
  • Font: loads DM Sans itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.

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"