Boss Bar
A boss HP bar is drained by hits, then 'DEFEATED' slams in beneath 'The old workflow'. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/boss-barUsage
// src/Root.tsx
import { Composition } from "remotion";
import { BossBar } from "@/components/remocn/boss-bar";
const BossBarScene = () => (
<BossBar boss="THE OLD WORKFLOW" hits={[{ label: "Captions", damage: 800 }, { label: "Templates", damage: 1200 }]} />
);
export const RemotionRoot = () => (
<Composition
id="BossBar"
component={BossBarScene}
durationInFrames={320}
fps={60}
width={1280}
height={720}
/>
);A boss HP bar fills in, each named hit slams in and drains the bar, and when it breaks the defeated word slams in beneath the boss name. Pass boss, hits (label and damage) and defeated; it ships light and dark.
Props14
| Prop | Type | Default |
|---|---|---|
| boss | string"THE OLD WORKFLOW" Boss name over the bar. | |
| hits | BossHit[]— Hits in order; the last one takes the bar to zero. | |
| defeated | string"DEFEATED" Word slammed in when the bar breaks. | |
| tag | string"BOSS" Small label in the accent tag before the boss name. | |
| hitGap | number26 Frames between hits. | |
| accent | string"#3B5BFD" The small "BOSS" tag and the hit slash. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Chakra Petch" 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" Colour scheme; ships light and dark. | |
| speed | number1 Playback multiplier; above 1 plays faster. | |
- bossstring
Boss name over the bar.
Default
"THE OLD WORKFLOW" - hitsBossHit[]
Hits in order; the last one takes the bar to zero.
- defeatedstring
Word slammed in when the bar breaks.
Default
"DEFEATED" - tagstring
Small label in the accent tag before the boss name.
Default
"BOSS" - hitGapnumber
Frames between hits.
Default
26 - accentstring
The small "BOSS" tag and the hit slash.
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
"Chakra Petch" - 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"
Colour scheme; ships light and dark.
Default
"dark" - speednumber
Playback multiplier; above 1 plays faster.
Default
1