Slim Count

A slim outlined numeral counts down as a wavy fill drains out of it, beside a condensed caption. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/slim-count

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SlimCount } from "@/components/remocn/slim-count";
 
const SlimCountScene = () => <SlimCount value={0} from={100} label="Keyframes left to set by hand" />;
 
export const RemotionRoot = () => (
  <Composition
    id="SlimCount"
    component={SlimCountScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

A tall condensed numeral counts from from down to value while a wavy fill drains out of its outline like a tank; a bold caption rises in word by word beside it at the start. Pass value, from and label, with prefix, suffix or decimals if needed; accent colors the fill. It ships light and dark through theme.

Props16

PropTypeDefault
value
number0

The number the count lands on.

from
number100

Starting number; the fill starts full here.

decimals
number0

Decimal places shown.

prefix
string""

Text before the number.

suffix
string""

Text after the number.

label
string"Keyframes left to set by hand"

Caption that rises in word by word.

countDuration
number60

Frames the count takes to run from `from` to `value`.

stagger
number3

Frames between label words.

accent
string—

Color of the fill; defaults to the theme ink.

ink
string—

Text color; overrides the theme ink.

background
string—

Stage background color; overrides the theme ground.

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.

theme
"dark" | "light""dark"

Light or dark palette.

  • valuenumber

    The number the count lands on.

    Default0

  • fromnumber

    Starting number; the fill starts full here.

    Default100

  • decimalsnumber

    Decimal places shown.

    Default0

  • prefixstring

    Text before the number.

    Default""

  • suffixstring

    Text after the number.

    Default""

  • labelstring

    Caption that rises in word by word.

    Default"Keyframes left to set by hand"

  • countDurationnumber

    Frames the count takes to run from `from` to `value`.

    Default60

  • staggernumber

    Frames between label words.

    Default3

  • accentstring

    Color of the fill; defaults to the theme ink.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Stage background color; overrides the theme ground.

  • 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.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"