Kerning Snap

Loose letters snap one by one into correct kerning, forming a gradient serif word. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/kerning-snap

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { KerningSnap } from "@/components/remocn/kerning-snap";
 
const KerningSnapScene = () => (
  <KerningSnap word="Kerning" interval={6} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="KerningSnap"
    component={KerningSnapScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

Letters start scattered and loose across the frame; from the center outward, each one springs into its kerned position every interval frames with a brief flash on the snap ticks, and the gradient fill reads whole once the word is set. Pass word and tune interval for pacing; it ships light and dark through theme.

Props12

PropTypeDefault
word
string"Typeset"

The word assembled from loose letters.

interval
number7

Frames between one letter snapping and the next.

firstSnap
number30

Frame the first letter snaps into place; the rest follow every `interval` frames.

accent
string"#3B5BFD"

Color of the flash ticks beside the word.

ink
string—

Solid text color in place of the gradient fill.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Fraunces"

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"

Ships light and dark.

speed
number1

Playback speed multiplier.

  • wordstring

    The word assembled from loose letters.

    Default"Typeset"

  • intervalnumber

    Frames between one letter snapping and the next.

    Default7

  • firstSnapnumber

    Frame the first letter snaps into place; the rest follow every `interval` frames.

    Default30

  • accentstring

    Color of the flash ticks beside the word.

    Default"#3B5BFD"

  • inkstring

    Solid text color in place of the gradient fill.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Fraunces"

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

    Ships light and dark.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1