Weight Wave
Font weight wave for Remotion: a ripple of boldness travels across the letters of a tagline with a variable font, then the line settles and one word takes a gradient color.
In Remotion, Weight Wave sends a wave of font-weight change across a line of text with a variable font, then settles on one highlighted word. Use it for a tagline about motion or flexibility where the type itself should feel alive.
$ pnpm dlx shadcn@latest add @remocn/weight-waveHow to build this in Remotion
You don't need fontVariationSettings keyframes for each letter. Install the component and pass your line:
npx shadcn@latest add @remocn/weight-waveIt is one scene. Every letter is its own span whose fontWeight is computed each frame from a crest moving across the line: waves crests cross it, waveLength frames each. Then the letters ease to the settle weight one by one, and the highlight word takes a gradient fill (background-clip: text). Letters never leave their place. The default Geist is loaded as a variable font through @remotion/google-fonts, so the weight changes smoothly. The schedule lives in timeline.ts.
Good to know
- Length: 132 frames of motion at 30 fps (264 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 (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Geist itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - Weights run from
from(100) topeak(500). The default Geist is loaded as a variable font; a customfontFamilyneeds a variable weight axis too. - The weight is clamped to 100–500 in the source (
WGHT_MINandWGHT_MAX). For a heavier peak, raiseWGHT_MAXin your copy of the file and use a font whose weight axis goes that far: the code is yours. - The highlighted word always gets a gradient fill;
accentsets its deep end. There is no prop for a solid color; change thebeamFillgradient in your copy if you need one. - The line never wraps: the font size shrinks so the whole tagline fits 80% of the frame width (and at most 32% of its height). Short taglines read best; a long sentence becomes small.
Usage
// 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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
100 - peaknumber
Weight reached at the crest of each wave.
Default
500 - settlenumber
Resting weight each letter ends on.
Default
460 - wavesnumber
How many weight waves sweep across the line.
Default
2 - waveLengthnumber
Frames for one wave to cross the line.
Default
46 - staggernumber
Frames between letters as they settle.
Default
2.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.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Color scheme; ships dark and light.
Default
"dark" - speednumber
Playback multiplier for the whole timeline.
Default
1
Common questions
How do I make the font weight ripple across the letters like a wave and rest on one emphasized word?
Install Weight Wave with npx shadcn@latest add @remocn/weight-wave, pass text and the word to emphasize as highlight (by default the last word). from, peak and settle set the weight range, waves and waveLength the ripple.
Can the peak be bolder than 500?
Not through props: weights are clamped to 100–500. Raise WGHT_MAX in the copied file and load a font that has the heavier weights.
What happens with a long tagline?
It stays on one line and shrinks to fit. For copy that should wrap across several lines, use Line by Line Slide.
Related effects
- Axis Flex: width and weight flex on a single big word.
- Enhance Count: blurry thin text that sharpens into a heavier weight.
- Chromatic Wave: a wave with RGB fringes running down a title.
- Per-Character Rise: letters entering one by one.