Weight Wave

A wave of font weight travels across a line of text and settles on a highlighted word. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/weight-wave

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { WeightWave } from "@/components/remocn/weight-wave";
 
const WeightWaveScene = () => <WeightWave text="Made to move." highlight="move." accent="#3B5BFD" />;
 
export const RemotionRoot = () => (
  <Composition
    id="WeightWave"
    component={WeightWaveScene}
    durationInFrames={330}
    fps={60}
    width={1280}
    height={720}
  />
);

A line of text swells in font weight as a wave sweeps across it twice, then each letter settles to a resting weight while the last word takes a gradient fill. Pass text, optionally highlight for the word to color, and from, peak, settle to tune the weight range.

Props17

PropTypeDefault
text
string"Made to move."

The line of text to animate.

highlight
string—

Word to color with the gradient; defaults to the last word.

from
number100

Starting font weight, clamped to 100 to 500.

peak
number500

Weight reached at the crest of each wave.

settle
number460

Resting weight each letter ends on.

waves
number2

How many weight waves sweep across the line.

waveLength
number46

Frames for one wave to cross the line.

stagger
number2.4

Frames between letters as they settle.

accent
string"#3B5BFD"

Deep end color of the highlighted word gradient.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

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.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Color scheme; ships dark and light.

speed
number1

Playback multiplier for the whole timeline.

  • textstring

    The line of text to animate.

    Default"Made to move."

  • highlightstring

    Word to color with the gradient; defaults to the last word.

  • fromnumber

    Starting font weight, clamped to 100 to 500.

    Default100

  • peaknumber

    Weight reached at the crest of each wave.

    Default500

  • settlenumber

    Resting weight each letter ends on.

    Default460

  • wavesnumber

    How many weight waves sweep across the line.

    Default2

  • waveLengthnumber

    Frames for one wave to cross the line.

    Default46

  • staggernumber

    Frames between letters as they settle.

    Default2.4

  • accentstring

    Deep end color of the highlighted word gradient.

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

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Color scheme; ships dark and light.

    Default"dark"

  • speednumber

    Playback multiplier for the whole timeline.

    Default1