Phone Scroll
A phone rises and flicks a tall app screen to each scroll stop while a headline slides in beside it. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/phone-scrollUsage
// src/Root.tsx
import { Composition } from "remotion";
import { PhoneScroll } from "@/components/remocn/phone-scroll";
const PhoneScrollScene = () => (
<PhoneScroll
stops={[930]}
label="Find your next stay in two taps."
labelAccent="two taps."
/>
);
export const RemotionRoot = () => (
<Composition
id="PhoneScroll"
component={PhoneScrollScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);A phone springs up beside a headline, then flicks its tall screen to each scroll stop with motion blur and momentum while a touch dot marks the press. Pass src with a tall screenshot, or children with your own 393pt-wide screen (omit both for a built-in sample feed), stops for the scroll offsets, and label plus labelAccent for the headline. Ships light and dark.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props19
| Prop | Type | Default |
|---|---|---|
| src | string— Tall screenshot rendered 393pt wide and scrolled | |
| stops | number[][930] Scroll offsets in screen points; one flick per stop | |
| label | string"Find your next stay in two taps." Headline beside the phone; empty string hides it | |
| labelAccent | string"two taps." Trailing part of the label set in italic serif | |
| eyebrow | string"remocn for iOS" Small line above the headline | |
| searchLabel | string"Where to?" Search field text in the built-in feed's header. | |
| flickGap | number46 Frames from one flick to the next when there are several stops. | |
| motionBlur | booleantrue Blur the screen along the scroll while it moves fast. | |
| children | React.ReactNode— Custom screen content, 393pt wide, scrolled like the screenshot | |
| accent | string"#3B5BFD" Accent color for highlights, buttons and progress | |
| 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"Figtree" 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 for the whole timeline | |
| theme | "light" | "dark""light" Light or dark palette | |
| ground | GshPresetId— gradients.sh preset id for the backdrop shader | |
| groundParams | Partial<GradientParams>— Overrides for the backdrop shader parameters | |
- srcstring
Tall screenshot rendered 393pt wide and scrolled
- stopsnumber[]
Scroll offsets in screen points; one flick per stop
Default
[930] - labelstring
Headline beside the phone; empty string hides it
Default
"Find your next stay in two taps." - labelAccentstring
Trailing part of the label set in italic serif
Default
"two taps." - eyebrowstring
Small line above the headline
Default
"remocn for iOS" - searchLabelstring
Search field text in the built-in feed's header.
Default
"Where to?" - flickGapnumber
Frames from one flick to the next when there are several stops.
Default
46 - motionBlurboolean
Blur the screen along the scroll while it moves fast.
Default
true - childrenReact.ReactNode
Custom screen content, 393pt wide, scrolled like the screenshot
- accentstring
Accent color for highlights, buttons and progress
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
"Figtree" - 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 - theme"light" | "dark"
Light or dark palette
Default
"light" - groundGshPresetId
gradients.sh preset id for the backdrop shader
- groundParamsPartial<GradientParams>
Overrides for the backdrop shader parameters