Enhance Count

A blurred, thin line sharpens in place into a heavier weight, with the last word in the accent. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/enhance-count

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { EnhanceCount } from "@/components/remocn/enhance-count";
 
const EnhanceCountScene = () => (
  <EnhanceCount text={"Draft it fast.\nFinish it sharp."} highlight="sharp." />
);
 
export const RemotionRoot = () => (
  <Composition
    id="EnhanceCount"
    component={EnhanceCountScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

The text enters thin and blurred, then each glyph sharpens and gains weight in a quick sweep so the line reads as finished. Pass text (use a newline for a second line) and highlight for the accented words; it ships light and dark through theme.

Props13

PropTypeDefault
text
string"Draft it fast.\nFinish it sharp."

Text to show; newline starts a new line

highlight
string"sharp."

Word or words shown in the accent color

accent
string—

Accent color (any valid CSS color)

ink
string—

Text color; overrides the theme ink.

background
string—

Overrides the theme's stage color

fontFamily
string"Inter Tight"

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

fontWeight
number440

Weight the glyphs settle on.

draftWeight
number100

Weight the glyphs start from before they sharpen.

span
number34

Frames the sharpening sweeps across the whole 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.

speed
number1

Playback speed multiplier

theme
"dark" | "light""dark"

Ships light and dark palettes

  • textstring

    Text to show; newline starts a new line

    Default"Draft it fast.\nFinish it sharp."

  • highlightstring

    Word or words shown in the accent color

    Default"sharp."

  • accentstring

    Accent color (any valid CSS color)

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Overrides the theme's stage color

  • fontFamilystring

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

    Default"Inter Tight"

  • fontWeightnumber

    Weight the glyphs settle on.

    Default440

  • draftWeightnumber

    Weight the glyphs start from before they sharpen.

    Default100

  • spannumber

    Frames the sharpening sweeps across the whole text.

    Default34

  • 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

  • speednumber

    Playback speed multiplier

    Default1

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"