Path Text

Text starts along a loose hand-drawn path, then straightens into a clean line with an italic tail. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/path-text

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PathText } from "@/components/remocn/path-text";
 
const PathTextScene = () => (
  <PathText text="From rough to ready." italicWords={1} looseness={0.15} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="PathText"
    component={PathTextScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

The text is drawn along a wobbly path, then the path flattens and thins as the letters straighten into a clean line, with the last words in italic. Pass text, italicWords and looseness; it ships light and dark through theme.

Props13

PropTypeDefault
text
string"From rough to ready."

Text laid along the path

italicWords
number1

Number of trailing words set in italic

looseness
number0.15

How wobbly the starting path is; 0 is flat

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Instrument Serif"

Typeface for the copy. Load the font in your project first.

stagger
number2

Frames between letters as the text writes on.

pullAt
number46

Frame where the loose stroke starts pulling taut under the text.

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"

Ships light and dark palettes

speed
number1

Playback speed multiplier

accent
string—

Accent color for the stroke gradient

  • textstring

    Text laid along the path

    Default"From rough to ready."

  • italicWordsnumber

    Number of trailing words set in italic

    Default1

  • loosenessnumber

    How wobbly the starting path is; 0 is flat

    Default0.15

  • 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"Instrument Serif"

  • staggernumber

    Frames between letters as the text writes on.

    Default2

  • pullAtnumber

    Frame where the loose stroke starts pulling taut under the text.

    Default46

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

    Ships light and dark palettes

    Default"dark"

  • speednumber

    Playback speed multiplier

    Default1

  • accentstring

    Accent color for the stroke gradient