Sold Out

A remaining-stock number races to zero with a LOW STOCK flash, then a slanted metallic chrome SOLD OUT banner slams over it, a scarcity beat for a product drop. A free, MIT-licensed Remotion text animation.

In Remotion, Sold Out races a remaining-stock number down to zero, then slams a slanted metallic SOLD OUT banner over it. Use it for a scarcity beat in a product drop or limited-release video.

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

How to race a stock number to zero, then slam a sold out banner

A remaining-stock counter that races to zero, followed by a tilted chrome SOLD OUT band slamming across it, is one component:

bash
npx shadcn@latest add @remocn/sold-out
  • The counter punches in at stock with its unit, rolls fast down to ten, then ticks down one by one in red with the warning tag flashing. At zero it holds hold frames before the band slams in at angle (-11°) with the stamp text, and a subline of lead plus tail rises.
  • The band uses a fixed chrome gradient; accent does not change it. Edit the gradient in the copied file for another color.
  • There is no prop to hide the warning tag. Pass empty lead and tail to leave the subline blank, and remove the tag in the copied file if you do not want it.
  • speed changes how fast the whole beat plays (122 frames at 1, about 61 at 2). Frame counts stay in 30 fps frames at any composition frame rate.

To count down to a live time use Drop Timer; for a number that simply eases to a target, Number Wheel.

Good to know

  • Length: 122 frames of motion at 30 fps (244 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 (delay, stagger, hold) stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: loads Archivo and Instrument Serif itself through @remotion/google-fonts. Pass fontFamily to replace Archivo, and load that font in your project; the serif italic accent stays.

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

Common questions

How do I animate a stock counter draining to zero, then a SOLD OUT band slamming across, in Remotion?

Install Sold Out with npx shadcn@latest add @remocn/sold-out and render <SoldOut stock={64} unit="LEFT" stamp="SOLD OUT" />. The counter races down to ten, ticks down to zero in red with a LOW STOCK flash, then a tilted chrome SOLD OUT band slams across the screen. No @remotion/motion-blur or hand-written interpolate() curves are needed.

Can I hide the LOW STOCK tag or recolor the chrome band?

Not with a prop. The tag is the warning text and the band uses a fixed chrome gradient; accent does not change it. Remove the tag or edit the gradient in the copied file.

Can I change the angle of the band or the stamp text?

Yes. angle sets the tilt in degrees (-11 by default) and stamp the text on the band, for example stamp="GONE".