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.
$ pnpm dlx shadcn@latest add @remocn/sold-outHow 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:
npx shadcn@latest add @remocn/sold-out- The counter punches in at
stockwith itsunit, rolls fast down to ten, then ticks down one by one in red with thewarningtag flashing. At zero it holdsholdframes before the band slams in atangle(-11°) with thestamptext, and a subline ofleadplustailrises. - The band uses a fixed chrome gradient;
accentdoes not change it. Edit the gradient in the copied file for another color. - There is no prop to hide the warning tag. Pass empty
leadandtailto leave the subline blank, and remove the tag in the copied file if you do not want it. speedchanges 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,Sequencelengths) 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-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Archivo and Instrument Serif itself through
@remotion/google-fonts. PassfontFamilyto replace Archivo, and load that font in your project; the serif italic accent stays.
Usage
// 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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
128 - 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.
Default
6 - anglenumber
Tilt of the band, in degrees.
Default
-11 - theme"dark" | "light"
Light or dark ground; ships both.
Default
"dark" - speednumber
Playback speed multiplier.
Default
1 - 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.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0
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".
Related effects
- Drop Timer: a countdown to a live time.
- Number Wheel: a number that eases to a target.
- Rolling Number: a number that climbs up as a positive stat.