Device Grows Around
A live plays counter card grows a device frame around it, with range tabs and delta stats. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/device-grows-aroundUsage
// src/Root.tsx
import { Composition } from "remotion";
import { DeviceGrowsAround } from "@/components/remocn/device-grows-around";
const DeviceGrowsAroundScene = () => (
<DeviceGrowsAround
name="Launch Film"
subtitle="Studio export"
metric={48213}
theme="dark"
/>
);
export const RemotionRoot = () => (
<Composition
id="DeviceGrowsAround"
component={DeviceGrowsAroundScene}
durationInFrames={186}
fps={30}
width={1280}
height={720}
/>
);A project name and subtitle type in, a plays counter card appears, then a phone frame grows around it as the camera pushes back to show a chart, range tabs, a list and an all-time total counting up. Pass your own name, subtitle, metric, delta, total and gain. It ships dark and light through the theme prop.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props22
| Prop | Type | Default |
|---|---|---|
| theme | "dark" | "light""dark" Dark or light styling for the device and stage. | |
| accent | string"#3B5BFD" Accent color for the typed text and highlights. | |
| name | string"Launch Film" Project name typed in at the start. | |
| badge | string"v2" Small badge shown next to the name; empty hides it. | |
| subtitle | string"Remocn Studio export" Subtitle typed in under the name. | |
| metric | number48213 Main plays number shown on the counter card. | |
| delta | string"6,904 (16.7%) today" Change text shown under the main number. | |
| total | number1284507 All-time total the final counter rolls up to. | |
| gain | number412880 Gain figure shown next to the total, counted up. | |
| unit | string"views" Unit shown after the main number. | |
| liveLabel | string"Live" Label on the live counter card. | |
| listTitle | string"Top sources" Heading above the source bars. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| ink | string— Text color; overrides the theme ink. | |
| fontFamily | string"Sora" Typeface for the copy. Load the font in your project first. | |
| ground | GshPresetId— Gradient shader preset id for the background. | |
| groundParams | Partial<GradientParams>— Overrides for the shader preset parameters. | |
| background | string— Solid fill in place of the gradient ground; 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 speed multiplier for the whole timeline. | |
| grain | booleantrue Film grain over the scene. | |
- theme"dark" | "light"
Dark or light styling for the device and stage.
Default
"dark" - accentstring
Accent color for the typed text and highlights.
Default
"#3B5BFD" - namestring
Project name typed in at the start.
Default
"Launch Film" - badgestring
Small badge shown next to the name; empty hides it.
Default
"v2" - subtitlestring
Subtitle typed in under the name.
Default
"Remocn Studio export" - metricnumber
Main plays number shown on the counter card.
Default
48213 - deltastring
Change text shown under the main number.
Default
"6,904 (16.7%) today" - totalnumber
All-time total the final counter rolls up to.
Default
1284507 - gainnumber
Gain figure shown next to the total, counted up.
Default
412880 - unitstring
Unit shown after the main number.
Default
"views" - liveLabelstring
Label on the live counter card.
Default
"Live" - listTitlestring
Heading above the source bars.
Default
"Top sources" - logoReact.ReactNode
Replaces the remocn mark.
- inkstring
Text color; overrides the theme ink.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Sora" - groundGshPresetId
Gradient shader preset id for the background.
- groundParamsPartial<GradientParams>
Overrides for the shader preset parameters.
- backgroundstring
Solid fill in place of the gradient ground; 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 speed multiplier for the whole timeline.
Default
1 - grainboolean
Film grain over the scene.
Default
true