Kinetic Warp
Mesh warp kinetic typography for Remotion: a heavy display word, visible from the first frame, bends and snaps through a coarse grid warp in staccato steps.
In Remotion, Kinetic Warp takes a heavy display word that is visible from the first frame and bends and snaps it with a coarse mesh warp in staccato steps, instead of animating letter by letter. Use it for a bold kinetic-typography moment on a short word.
$ pnpm dlx shadcn@latest add @remocn/kinetic-warpHow to build this in Remotion
You don't need @remotion/three, three.js or @remotion/paths for this. Install the component and pass the word:
npx shadcn@latest add @remocn/kinetic-warpThe text is drawn once onto a 2D canvas, then resampled every frame through a mesh of columns and rows whose control lines follow five keyframed moves from timeline.ts, eased with interpolate() and an Easing.bezier curve. delayRender holds the frame until the font has loaded.
Good to know
- Length: 100 frames of motion at 30 fps (200 at 60 fps) with the default props; the demo plays 120 frames, which adds a hold. The warp is five moves (column right, row down, column left, row up, home) of
keyframeStride(20) frames each; after the last one the word rests in its straight shape for the rest of the clip. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Installs:
remotionfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - Font:
sans-serifby default. PassfontFamily, andfontUrlfor a webfont stylesheet; the render waits for the font throughdocument.fontsbefore drawing. - Positions are in composition pixels for a 1920×1080 frame (
compWidth,compHeight,colRestX,rowRestYand the other column and row values). At another resolution, setcompWidthandcompHeightand retune those values. - The word is fully visible from frame 0; it distorts, it does not enter.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { KineticWarp } from "@/components/remocn/kinetic-warp";
const KineticWarpScene = () => (
<KineticWarp
text={"REM\nOCN"}
fontFamily="Passion One"
fontUrl="https://fonts.googleapis.com/css2?family=Passion+One:wght@700&display=block"
/>
);
export const RemotionRoot = () => (
<Composition
id="KineticWarp"
component={KineticWarpScene}
durationInFrames={240}
fps={60}
width={1920}
height={1080}
/>
);The component renders to a canvas, so the font must actually be loaded before the text is drawn — pass fontUrl for any webfont and the render is held (via delayRender) until it lands.
Props25
| Prop | Type | Default |
|---|---|---|
| text | string"REM\nOCN" The text to warp. Split lines with `\n` | |
| textColor | string"#FFFFFF" Fill color of the type | |
| fontFamily | string"sans-serif" Font family drawn to the canvas | |
| fontUrl | string"" Stylesheet URL for the webfont. Empty string skips loading and uses a local font | |
| fontWeight | number700 CSS font-weight | |
| fontSize | number107.1 Layer-space font size, before `layerScale` | |
| leading | number70 Layer-space baseline-to-baseline distance, before `layerScale` | |
| tracking | number-21 Tracking in 1/1000 em | |
| layerScale | number480 Percent scale applied to the type after layout | |
| positionX | number960 Horizontal center of the text block in comp pixels | |
| positionY | number540 Vertical center of the text block in comp pixels | |
| compWidth | number1920 Canvas width in pixels | |
| compHeight | number1080 Canvas height in pixels | |
| meshRows | number2 Mesh cells vertically — the coarseness is the effect | |
| meshColumns | number4 Mesh cells horizontally | |
| colRestX | number960 Rest position of the moving column line | |
| colRightX | number1255 Column position at keyframes 2 and 3 | |
| colLeftX | number678 Column position at keyframes 4 and 5 | |
| rowRestY | number540 Rest position of the moving row line | |
| rowDownY | number850 Row position at keyframes 3 and 4 | |
| rowUpY | number387 Row position at keyframe 5 | |
| keyframeStride | number20 Frames between the six keyframes — motion ends at `5 * keyframeStride` | |
| easingBezier | [number, number, number, number][0.3, 0.74, 0.09, 1] Cubic bezier applied between keyframes | |
| resampleStep | number4 Destination pixels per resampled strip — lower is smoother and slower | |
| className | string— Optional className passed to the wrapper | |
- textstring
The text to warp. Split lines with `\n`
Default
"REM\nOCN" - textColorstring
Fill color of the type
Default
"#FFFFFF" - fontFamilystring
Font family drawn to the canvas
Default
"sans-serif" - fontUrlstring
Stylesheet URL for the webfont. Empty string skips loading and uses a local font
Default
"" - fontWeightnumber
CSS font-weight
Default
700 - fontSizenumber
Layer-space font size, before `layerScale`
Default
107.1 - leadingnumber
Layer-space baseline-to-baseline distance, before `layerScale`
Default
70 - trackingnumber
Tracking in 1/1000 em
Default
-21 - layerScalenumber
Percent scale applied to the type after layout
Default
480 - positionXnumber
Horizontal center of the text block in comp pixels
Default
960 - positionYnumber
Vertical center of the text block in comp pixels
Default
540 - compWidthnumber
Canvas width in pixels
Default
1920 - compHeightnumber
Canvas height in pixels
Default
1080 - meshRowsnumber
Mesh cells vertically — the coarseness is the effect
Default
2 - meshColumnsnumber
Mesh cells horizontally
Default
4 - colRestXnumber
Rest position of the moving column line
Default
960 - colRightXnumber
Column position at keyframes 2 and 3
Default
1255 - colLeftXnumber
Column position at keyframes 4 and 5
Default
678 - rowRestYnumber
Rest position of the moving row line
Default
540 - rowDownYnumber
Row position at keyframes 3 and 4
Default
850 - rowUpYnumber
Row position at keyframe 5
Default
387 - keyframeStridenumber
Frames between the six keyframes — motion ends at `5 * keyframeStride`
Default
20 - easingBezier[number, number, number, number]
Cubic bezier applied between keyframes
Default
[0.3, 0.74, 0.09, 1] - resampleStepnumber
Destination pixels per resampled strip — lower is smoother and slower
Default
4 - classNamestring
Optional className passed to the wrapper
Inspired by How to Make Kinetic Warp Text Animation in After Effects by P A N T E R.
Common questions
How do I make a heavy word bend and snap with a mesh warp in Remotion?
Install Kinetic Warp with npx shadcn@latest add @remocn/kinetic-warp and pass text (use \n for line breaks), fontFamily and fontUrl.
Does it need three.js or WebGL?
No. It warps a 2D canvas, so it renders anywhere Remotion does.
Related effects
- Tracking In: a text entrance where spacing collapses.
- Soft Blur In: a soft letter-by-letter entrance.
- Per Character Rise: letters rise one by one.
- RGB Glitch Text: a brief RGB-split glitch on a title.