Cooling Type

A sentence types out glowing hot and cools to ink, ending on an italic serif word and a caret. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/cooling-type

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { CoolingType } from "@/components/remocn/cooling-type";
 
const CoolingTypeScene = () => (
  <CoolingType
    text="What if your launch video could write itself?"
    accentWord="itself?"
    charFrames={1.6}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="CoolingType"
    component={CoolingTypeScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);

Characters type in with a slightly irregular rhythm, each one starting in a hot color and cooling to the ink color; the accent word breathes in as serif italic and a caret finishes the line. Pass text and accentWord, and tune charFrames and coolFrames for pace; it ships light and dark through theme.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props19

PropTypeDefault
text
string"What if your launch video could write itself?"

Sentence to type out

accentWord
string"itself?"

Word in the text set in serif italic

hot
string—

Color of freshly typed characters

accent
string—

Color of the accent word and caret

ink
string—

Settled text color

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

fontFamily
string"Inter Tight"

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

fontWeight
number300

Weight of the typed copy; the accent word keeps its serif.

glow
number1

Strength of the heat glow around fresh letters; 0 turns it off.

theme
"dark" | "light""dark"

Ships light and dark palettes

ground
GshPresetId—

Gradient ground preset id

groundParams
Partial<GradientParams>—

Partial gradient parameters to tune the ground

startAt
numberBEAT.start

Frame the first character appears

charFrames
number1.6

Frames per character before pacing variation

coolFrames
number20

Frames for a character to cool from hot to ink

seed
number5

Seed for the typing rhythm jitter

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 for the whole timeline.

  • textstring

    Sentence to type out

    Default"What if your launch video could write itself?"

  • accentWordstring

    Word in the text set in serif italic

    Default"itself?"

  • hotstring

    Color of freshly typed characters

  • accentstring

    Color of the accent word and caret

  • inkstring

    Settled text color

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Inter Tight"

  • fontWeightnumber

    Weight of the typed copy; the accent word keeps its serif.

    Default300

  • glownumber

    Strength of the heat glow around fresh letters; 0 turns it off.

    Default1

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"

  • groundGshPresetId

    Gradient ground preset id

  • groundParamsPartial<GradientParams>

    Partial gradient parameters to tune the ground

  • startAtnumber

    Frame the first character appears

    DefaultBEAT.start

  • charFramesnumber

    Frames per character before pacing variation

    Default1.6

  • coolFramesnumber

    Frames for a character to cool from hot to ink

    Default20

  • seednumber

    Seed for the typing rhythm jitter

    Default5

  • 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 for the whole timeline.

    Default1