Handwrite
Pen-written text for Remotion: captions and labels appear letter by letter in a handwriting font on a choppy stop-motion beat, like writing on paper.
In Remotion, Handwrite makes captions, labels and headlines look pen-written on paper: letters appear one at a time in a handwriting font on a choppy stop-motion beat. Use it as the text voice of a stop-motion or scrapbook scene.
$ pnpm dlx shadcn@latest add @remocn/handwriteHow to build this in Remotion
You don't need opentype.js stroke paths or evolvePath() from @remotion/paths. Install the component:
npx shadcn@latest add @remocn/handwriteLetters arrive on the quantized clock from @remocn/stop-motion: one pose every step frames, each letter with a small seeded jitter, so every render matches the preview. handwriteDuration(text) returns how many frames the string needs, so a Sequence can be sized to the writing.
Good to know
- Length: 120 frames of motion at 30 fps (240 at 60 fps) with the default props. The real length depends on the text; use
handwriteDuration(). The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersstop-motion,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Caveat itself through
@remotion/google-fonts, with a cursive fallback. PassfontFamilyto use another hand, and load it in your project. stepandhandwriteDuration()count in 30 fps frames at any composition frame rate:step={3}is ten poses a second. In a 60 fps composition, double thehandwriteDuration()value you hand to aSequence.- The component is transparent; put the paper color on the layer behind it. It is not timed to speech; for subtitles from a transcript use the Captions components.
Usage
// src/Root.tsx
import { AbsoluteFill, Composition } from "remotion";
import { Handwrite } from "@/components/remocn/handwrite";
const HandwriteScene = () => (
<AbsoluteFill style={{ background: "#f1eee7" }}>
<Handwrite text="Made by hand" fontSize={72} />
</AbsoluteFill>
);
export const RemotionRoot = () => (
<Composition
id="Handwrite"
component={HandwriteScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);The component is transparent — put the paper colour on the layer behind it.
handwriteDuration returns how many frames a string needs, so a <Sequence> can
be sized to the writing instead of guessed:
import { Sequence } from "remotion";
import { Handwrite, handwriteDuration } from "@/components/remocn/handwrite";
const title = "Made by hand";
const subtitle = "one pose at a time";
const Titles = () => (
<>
<Sequence durationInFrames={handwriteDuration(title) * 2}>
<Handwrite text={title} fontSize={72} />
</Sequence>
<Sequence from={handwriteDuration(title) * 2}>
<Handwrite text={subtitle} fontSize={44} />
</Sequence>
</>
);Letters arrive on the stop-motion clock, so step is the tempo control: 3
frames per pose is ten poses a second, counted at 30 fps. Raise it for a slower, more
deliberate hand. The component holds still between poses — wrap it in
paper-wobble if the whole sheet should breathe.
Props9
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The text to write out; newlines are honoured | |
| fontSize | number54 Font size in pixels | |
| color | string"#26242c" Ink colour (any valid CSS color) | |
| delay | number0 Frames on the local clock before writing begins | |
| perStep | number1.6 Letters laid down per stop-motion pose | |
| weight | 400 | 500 | 600 | 700600 Pen weight | |
| align | "left" | "center""center" Horizontal alignment of the written block | |
| fontFamily | string— Overrides the bundled Caveat family; falls back to cursive | |
| step | number3 Frames per stop-motion pose — the tempo control | |
- textrequiredstring
The text to write out; newlines are honoured
- fontSizenumber
Font size in pixels
Default
54 - colorstring
Ink colour (any valid CSS color)
Default
"#26242c" - delaynumber
Frames on the local clock before writing begins
Default
0 - perStepnumber
Letters laid down per stop-motion pose
Default
1.6 - weight400 | 500 | 600 | 700
Pen weight
Default
600 - align"left" | "center"
Horizontal alignment of the written block
Default
"center" - fontFamilystring
Overrides the bundled Caveat family; falls back to cursive
- stepnumber
Frames per stop-motion pose — the tempo control
Default
3
Common questions
How do I make captions look pen-written on paper in Remotion, one letter at a time on a stop-motion beat?
Install Handwrite with npx shadcn@latest add @remocn/handwrite and pass text. Raise step for a slower hand.
Does the step clock depend on the composition fps?
No. It counts in 30 fps frames, so the pace in seconds is the same at 30 or 60 fps.
How do I underline the text after it is written?
Add Ink Underline and set its delay from handwriteDuration().
Related effects
- Typewriter: a terminal or input being typed into.
- Soft Blur In: a soft letter-by-letter reveal, no hand.
- Per Character Rise: letters slide up crisply.
- Ink Underline: a hand-dragged underline that follows the writing.