Candle Rally
Candlesticks rally past a prior high as 'ALL-TIME HIGH' lands beside a price tag. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/candle-rallyUsage
// src/Root.tsx
import { Composition } from "remotion";
import { CandleRally } from "@/components/remocn/candle-rally";
const CandleRallyScene = () => (
<CandleRally
symbol="ACME"
price={96.5}
prevHigh={88}
headline="Record"
headline2="quarter"
/>
);
export const RemotionRoot = () => (
<Composition
id="CandleRally"
component={CandleRallyScene}
durationInFrames={320}
fps={60}
width={1280}
height={720}
/>
);Candlesticks build left to right, the last one breaks through a dashed previous-high line, and a price tag rides its wick before a two-line headline slams in. Pass symbol, price, prevHigh, and the headline and headline2 words. Ships dark and light via theme.
Props15
| Prop | Type | Default |
|---|---|---|
| symbol | string"RMCN" Ticker on the price tag riding the last wick. Fictional. | |
| price | number128.4 Where the last candle closes; printed on the tag. | |
| prevHigh | number112 The previous high the rally breaks through (dashed level). | |
| levelLabel | string"PREV HIGH" Label before the previous-high price on the dashed level. | |
| headline | string"All-time" First line of the slam. | |
| headline2 | string"high" Second line of the slam. | |
| fontFamily | string"Barlow Condensed" Typeface for the copy. Load the font in your project first. | |
| fontWeight | number500 Weight of the slam headline. | |
| accent | string"#3B5BFD" Accent color for the hero element. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| 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 multiplier. | |
| theme | "dark" | "light""dark" Dark or light palette. | |
- symbolstring
Ticker on the price tag riding the last wick. Fictional.
Default
"RMCN" - pricenumber
Where the last candle closes; printed on the tag.
Default
128.4 - prevHighnumber
The previous high the rally breaks through (dashed level).
Default
112 - levelLabelstring
Label before the previous-high price on the dashed level.
Default
"PREV HIGH" - headlinestring
First line of the slam.
Default
"All-time" - headline2string
Second line of the slam.
Default
"high" - fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Barlow Condensed" - fontWeightnumber
Weight of the slam headline.
Default
500 - accentstring
Accent color for the hero element.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- 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 - speednumber
Playback multiplier.
Default
1 - theme"dark" | "light"
Dark or light palette.
Default
"dark"