Sold Out

A stock counter races to zero, then a tilted chrome 'SOLD OUT' band slams across. A free, MIT-licensed Remotion text animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SoldOut } from "@/components/remocn/sold-out";
 
const SoldOutScene = () => <SoldOut stock={64} unit="LEFT" stamp="SOLD OUT" tail="every launch." />;
 
export const RemotionRoot = () => (
  <Composition
    id="SoldOut"
    component={SoldOutScene}
    durationInFrames={310}
    fps={60}
    width={1280}
    height={720}
  />
);

'128 LEFT' punches in, the reels race down to ten, then tick down hard with a LOW STOCK flash and red figures. At zero the diagonal band slams across with the stamp, and a subline rises. Pass stock, unit, stamp, lead and tail; it ships light and dark through theme.

Props16

PropTypeDefault
stock
number128

Stock when the shot opens; it races down to zero.

unit
string"LEFT"

Word after the counter.

warning
string"LOW STOCK"

Tag that flashes once the stock hits ten.

stamp
string"SOLD OUT"

Set huge on the diagonal band at zero.

lead
string"Restocking:"

Subline lead, in the grotesk.

tail
string"every launch."

Subline accent, in the serif italic.

hold
number6

Frames "0" holds before the band slams in.

angle
number-11

Tilt of the band, in degrees.

theme
"dark" | "light""dark"

Light or dark ground; ships both.

speed
number1

Playback speed multiplier.

accent
string—

Unused; kept for API parity, the band uses a fixed chrome gradient.

ink
string—

Text color of the counter and subline; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Archivo"

Typeface for the counter, stamp and subline lead; the subline accent keeps its serif. 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.

  • stocknumber

    Stock when the shot opens; it races down to zero.

    Default128

  • unitstring

    Word after the counter.

    Default"LEFT"

  • warningstring

    Tag that flashes once the stock hits ten.

    Default"LOW STOCK"

  • stampstring

    Set huge on the diagonal band at zero.

    Default"SOLD OUT"

  • leadstring

    Subline lead, in the grotesk.

    Default"Restocking:"

  • tailstring

    Subline accent, in the serif italic.

    Default"every launch."

  • holdnumber

    Frames "0" holds before the band slams in.

    Default6

  • anglenumber

    Tilt of the band, in degrees.

    Default-11

  • theme"dark" | "light"

    Light or dark ground; ships both.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1

  • accentstring

    Unused; kept for API parity, the band uses a fixed chrome gradient.

  • inkstring

    Text color of the counter and subline; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the counter, stamp and subline lead; the subline accent keeps its serif. Load the font in your project first.

    Default"Archivo"

  • 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