Squeeze Out

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

In Remotion, Squeeze Out sets a headline in narrow, condensed type that comes out line by line and then relaxes to its full width, like a fresh print pressed out of a machine. Use it for a headline that should feel pressed, then settled.

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

Good to know

  • Length: 64 frames of motion at 30 fps (128 at 60 fps) with the default props. That is the minimum for its Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames, Sequence lengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers frame-rate. The shadcn CLI copies the source into your project.
  • Font: loads Anton itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.

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"