Squeeze Out

Condensed text squeezes out line by line and relaxes into its full width. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/squeeze-out

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SqueezeOut } from "@/components/remocn/squeeze-out";
 
const SqueezeOutScene = () => (
  <SqueezeOut text="Freshly pressed frames." highlight="frames" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="SqueezeOut"
    component={SqueezeOutScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

Each glyph leaves its line as a narrow squeezed shape and relaxes into full width, with lines starting in overlap from top to bottom. The text is balanced across up to five lines automatically. Pass text, and highlight with words to set in the accent color. It takes a theme prop and ships light and dark.

Props12

PropTypeDefault
text
string"Freshly pressed frames."

The line to squeeze out; wraps across up to five lines.

highlight
string""

Space-separated words to set in the accent color.

squeeze
number0.26

Width a letter leaves the nozzle at, as a share of its full width.

relax
number30

Frames for a squeezed letter to relax to full width.

accent
string—

Color of highlighted words; defaults to the theme ink.

ink
string—

Text color; overrides the theme ink.

background
string—

Override the background color; use "transparent" to composite over your own.

fontFamily
string"Anton"

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.

speed
number1

Playback speed multiplier for the whole timeline.

theme
"dark" | "light""dark"

Light or dark ground; the component ships both.

  • textstring

    The line to squeeze out; wraps across up to five lines.

    Default"Freshly pressed frames."

  • highlightstring

    Space-separated words to set in the accent color.

    Default""

  • squeezenumber

    Width a letter leaves the nozzle at, as a share of its full width.

    Default0.26

  • relaxnumber

    Frames for a squeezed letter to relax to full width.

    Default30

  • accentstring

    Color of highlighted words; defaults to the theme ink.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Override the background color; use "transparent" to composite over your own.

  • fontFamilystring

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

    Default"Anton"

  • 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

  • theme"dark" | "light"

    Light or dark ground; the component ships both.

    Default"dark"