Stock Scrub
A phone stock page scrubs its price chart then opens a buy sheet. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/stock-scrubUsage
// src/Root.tsx
import { Composition } from "remotion";
import { StockScrub } from "@/components/remocn/stock-scrub";
const StockScrubScene = () => <StockScrub ticker="ORBT" name="Orbit Labs" theme="light" />;
export const RemotionRoot = () => (
<Composition
id="StockScrub"
component={StockScrubScene}
durationInFrames={540}
fps={60}
width={1280}
height={720}
/>
);A phone shows a stock page whose price line draws in, then a finger presses and scrubs the chart left and right while the price readout follows. It taps the 1Y tab to morph the chart, then taps Buy to raise a buy sheet. Pass ticker, name, series and yearSeries, and lines for the headline beside the phone. It has a theme prop and ships light and dark (dark by default).
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props18
| Prop | Type | Default |
|---|---|---|
| ticker | string"RMCN" Ticker symbol shown on the stock page. | |
| name | string"remocn Inc." Company name shown under the ticker. | |
| series | number[]DAY Intraday prices, open → now. The first value is the open (the dashed baseline). | |
| yearSeries | number[]YEAR Prices for the 1Y range; rescaled so it ends on the same price as `series`. | |
| ctaLabel | string"Buy" Label of the buy button on the stock page. | |
| orderLabel | string"Review order" Label of the button at the bottom of the buy sheet. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| accent | string"#3B5BFD" Accent color for the buy button and highlights. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Geist" 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 | "light" | "dark""dark" Light or dark palette. | |
| lines | [string, string, string, string]— Four lines beside the phone: live, scrub, range, buy. | |
| ground | GshPresetId— Gradients.sh preset id for the background shader. | |
| groundParams | Partial<GradientParams>— Overrides for the background shader parameters. | |
- tickerstring
Ticker symbol shown on the stock page.
Default
"RMCN" - namestring
Company name shown under the ticker.
Default
"remocn Inc." - seriesnumber[]
Intraday prices, open → now. The first value is the open (the dashed baseline).
Default
DAY - yearSeriesnumber[]
Prices for the 1Y range; rescaled so it ends on the same price as `series`.
Default
YEAR - ctaLabelstring
Label of the buy button on the stock page.
Default
"Buy" - orderLabelstring
Label of the button at the bottom of the buy sheet.
Default
"Review order" - logoReact.ReactNode
Replaces the remocn mark.
- accentstring
Accent color for the buy button and highlights.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Geist" - 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 speed multiplier.
Default
1 - theme"light" | "dark"
Light or dark palette.
Default
"dark" - lines[string, string, string, string]
Four lines beside the phone: live, scrub, range, buy.
- groundGshPresetId
Gradients.sh preset id for the background shader.
- groundParamsPartial<GradientParams>
Overrides for the background shader parameters.