Combo Counter
A gradient hit counter climbs to '12 HIT COMBO' with rating words like 'PERFECT'. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/combo-counterUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ComboCounter } from "@/components/remocn/combo-counter";
const ComboCounterScene = () => (
<ComboCounter
hits={["Captions", "Transitions", "Charts", "Templates"]}
/>
);
export const RemotionRoot = () => (
<Composition
id="ComboCounter"
component={ComboCounterScene}
durationInFrames={264}
fps={60}
width={1280}
height={720}
/>
);Feature names hit one after another with a star flash and slash, each hit faster than the last, while a combo meter on the left counts up and its rating swaps from Nice to Great to PERFECT. After the final hit the frame flashes, the meter glides to the centre as a poster with a gradient number, and the logo rises in. Pass hits and optionally ratings. It ships light and dark through the theme prop.
Props13
| Prop | Type | Default |
|---|---|---|
| hits | string[]— One hit per feature, in order. The combo count is the number of hits landed. | |
| ratings | ComboRating[]— Ratings, swapped in as the count passes `from`. The last one is the poster's. | |
| hitLabel | string"HIT" Big word next to the count. | |
| comboLabel | string"COMBO" Small caps label under the hit label. | |
| accent | string"#3B5BFD" Small marker next to the rating. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Saira" Typeface for the copy. Load the font in your project first. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| 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. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
| speed | number1 Playback speed multiplier; 1 is the designed pace. | |
- hitsstring[]
One hit per feature, in order. The combo count is the number of hits landed.
- ratingsComboRating[]
Ratings, swapped in as the count passes `from`. The last one is the poster's.
- hitLabelstring
Big word next to the count.
Default
"HIT" - comboLabelstring
Small caps label under the hit label.
Default
"COMBO" - accentstring
Small marker next to the rating.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Saira" - logoReact.ReactNode
Replaces the remocn mark.
- 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 - theme"dark" | "light"
Ships light and dark.
Default
"dark" - speednumber
Playback speed multiplier; 1 is the designed pace.
Default
1