Speed Ramp Word

A sentence zips across the frame, then drops into slow motion on one key word that warms to a gradient, with a small timecode HUD slowing alongside, then snaps back to speed. A free, MIT-licensed Remotion text animation.

In Remotion, Speed Ramp Word makes a sentence zip across the frame at full speed and then drop into slow motion on one emphasized word: the key word turns to a warm gradient in serif italic, ghost copies trail behind it and a small timecode HUD slows down with the shot, then time snaps back and the line rushes off. Use it for a performance or "instant" message where one word needs all the weight.

Installation
$ pnpm dlx shadcn@latest add @remocn/speed-ramp-word

How to build this in Remotion

You don't need to remap time on footage or hand-tune a variable playback speed with interpolate() and useCurrentFrame(). Install the component and pass the sentence and the word to slow down on:

bash
npx shadcn@latest add @remocn/speed-ramp-word

There is no video inside: the speed ramp is drawn from text. The schedule in timeline.ts has three elements, ramp, hang and snap. The phrase rushes in from the right, a smooth velocity curve brings it down to about 0.5% speed, the key word hangs and drifts a few pixels while the rest of the line dims and defocuses, then time snaps back on an accelerating curve and the phrase exits left at full speed.

Good to know

  • Length: 119 frames of motion at 30 fps (238 at 60 fps) with the default props. That is the minimum for its Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Fast versus slow, in 30 fps frames at speed 1: the rush runs 0–20, the ramp down 20–48 (28 frames), the slow-motion hang 48–100 (52 frames), the snap back 100–110, and the phrase exits at full speed after that. speed scales all of it; the timing prop moves, trims or stretches ramp, hang and snap one by one.
  • The key word's gradient is a fixed palette in the copied file (SWIRL): cream #FFE2C4, orange #FF9A4D and rose #D2456B on the dark theme; orange, rose and deep violet #3A1F6B on the light theme. Edit that constant to recolor it. accent does not touch the word: it is the color the timecode readout warms to as time slows.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Fonts: loads Schibsted Grotesk for the phrase, Instrument Serif italic for the key word and JetBrains Mono for the HUD through @remotion/google-fonts. fontFamily changes the phrase only.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SpeedRampWord } from "@/components/remocn/speed-ramp-word";
 
const SpeedRampWordScene = () => (
  <SpeedRampWord text="Everything changes in an instant." keyWord="instant" hud />
);
 
export const RemotionRoot = () => (
  <Composition
    id="SpeedRampWord"
    component={SpeedRampWordScene}
    durationInFrames={242}
    fps={60}
    width={1280}
    height={720}
  />
);

The phrase rushes across the frame, then time slows on the key word as it warms to a gradient, with a small timecode and speed readout slowing alongside. Pass text and keyWord; set hud to false to hide the readout. It ships light and dark.

Props14

PropTypeDefault
text
string"Everything changes in an instant."

The phrase that rushes across.

keyWord
string"instant"

The word inside `text` that drops into slow motion. Defaults to the last word.

hud
booleantrue

Show the small timecode and speed readout that slow down with the shot.

ghosts
booleantrue

Trailing copies of the key word that gather while it slows.

fontWeight
number500

Weight of the phrase; the key word keeps its serif italic.

accent
string"#3B5BFD"

Color the timecode readout warms to as time slows (any CSS color). The key word's gradient is fixed in the copied file.

ink
string—

Text color of the phrase; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Schibsted Grotesk"

Typeface for the phrase; the key word keeps its serif italic. 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.

theme
"dark" | "light""dark"

Colour scheme; ships light and dark.

speed
number1

Playback multiplier; above 1 plays faster.

  • textstring

    The phrase that rushes across.

    Default"Everything changes in an instant."

  • keyWordstring

    The word inside `text` that drops into slow motion. Defaults to the last word.

    Default"instant"

  • hudboolean

    Show the small timecode and speed readout that slow down with the shot.

    Defaulttrue

  • ghostsboolean

    Trailing copies of the key word that gather while it slows.

    Defaulttrue

  • fontWeightnumber

    Weight of the phrase; the key word keeps its serif italic.

    Default500

  • accentstring

    Color the timecode readout warms to as time slows (any CSS color). The key word's gradient is fixed in the copied file.

    Default"#3B5BFD"

  • inkstring

    Text color of the phrase; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the phrase; the key word keeps its serif italic. Load the font in your project first.

    Default"Schibsted Grotesk"

  • 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

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1

Common questions

How do I make a sentence zip past and go slow-mo on one word in Remotion?

Install Speed Ramp Word with npx shadcn@latest add @remocn/speed-ramp-word, then pass the sentence as text and the word to emphasize as keyWord. The word should appear in text; without keyWord the last word is used.

Can I hide the timecode HUD?

Yes. Set hud={false}. ghosts={false} removes the trailing copies of the key word.

How long is the slow-motion part?

With the default props the ramp down takes 28 frames and the hang 52 frames at 30 fps, so the key word is in slow motion for about 2.7 seconds of the 4-second scene. Change the pace with speed, or one phase with timing.

  • Slit Scan: a streaked blur that resolves into a word.
  • Typewriter: the line is typed in instead of rushing past.
  • Inline Highlight: recolor one word in a sentence without the slow motion.