Focus Pan Text
Status lines with a focus pan for Remotion: earlier lines stack up blurred as focus moves down to a final ready message with a small toolbar, like checks passing.
In Remotion, Focus Pan Text stacks status lines that blur as focus pans down to a final sentence with a small toolbar, like checks passing and then a ready message. Use it for a step-by-step status sequence in a deploy, CI or onboarding video.
$ pnpm dlx shadcn@latest add @remocn/focus-pan-textHow to build this in Remotion
You don't need TransitionSeries, Series or remotion-bits for this. Install the component and pass your lines:
npx shadcn@latest add @remocn/focus-pan-textThe pan, each line's focus and the toolbar run on the schedule in timeline.ts: moves are interpolate() with Easing and the toolbar rises with spring(). Out-of-focus lines are a CSS blur(). Line widths are measured on a canvas before the first frame, held with delayRender. The ground is a live gradients.sh shader (GshGround).
Good to know
- Length: 113 frames of motion at 30 fps (226 at 60 fps) with the default props. The demo plays 169 frames. The component exports
focusPanTextLength(lines, firstHold), which returns the length in 30 fps frames for your lines; double it at 60 fps. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersgsh,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Inter Tight itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - The lines are plain text with no check-mark icon. The toolbar shows the
metatext (default "Just now") followed by copy, thumbs-up and more icons drawn as inline SVG; those icons are not props, so edit them in the copied file.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { FocusPanText } from "@/components/remocn/focus-pan-text";
const FocusPanTextScene = () => (
<FocusPanText
lines={["The scan is clean.", "All 48 checks passed.", "You're ready to launch."]}
meta="Just now"
/>
);
export const RemotionRoot = () => (
<Composition
id="FocusPanText"
component={FocusPanTextScene}
durationInFrames={338}
fps={60}
width={1280}
height={720}
/>
);Each line is read in turn while earlier lines fall out of focus above; focus lands on the final line, the accent word lights up and a toolbar with meta text appears. Pass lines and accentWord; it ships light and dark through theme.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props16
| Prop | Type | Default |
|---|---|---|
| lines | string[]DEFAULT_LINES Lines shown in order; the last one is the payoff | |
| accentWord | string— Word in the last line shown in the accent color | |
| meta | string"Just now" Text in the toolbar after the final line | |
| accent | string— Color of the accent word | |
| ink | string— Text color override | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
| ground | GshPresetId— Gradient ground preset id | |
| groundParams | Partial<GradientParams>— Partial gradient parameters to tune the ground | |
| firstHold | number30 Frames the first line is held before panning on | |
| stagger | number3 Frames between the payoff line's words rising. | |
| fontWeight | number400 Weight of the lines. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Inter Tight" Typeface for the copy. Inter Tight loads by default; load any other face 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. | |
- linesstring[]
Lines shown in order; the last one is the payoff
Default
DEFAULT_LINES - accentWordstring
Word in the last line shown in the accent color
- metastring
Text in the toolbar after the final line
Default
"Just now" - accentstring
Color of the accent word
- inkstring
Text color override
- theme"dark" | "light"
Ships light and dark palettes
Default
"dark" - groundGshPresetId
Gradient ground preset id
- groundParamsPartial<GradientParams>
Partial gradient parameters to tune the ground
- firstHoldnumber
Frames the first line is held before panning on
Default
30 - staggernumber
Frames between the payoff line's words rising.
Default
3 - fontWeightnumber
Weight of the lines.
Default
400 - backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Inter Tight loads by default; load any other face in your project first.
Default
"Inter Tight" - 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
Common questions
How do I stack status lines in Remotion that blur as focus pans down to a final ready message?
Install Focus Pan Text with npx shadcn@latest add @remocn/focus-pan-text and pass lines, accentWord and meta. Each line is read in turn, then focus lands on the last line and a toolbar appears.
How long should the composition be?
Use the exported focusPanTextLength(lines) for the 30 fps length; at 60 fps hand Remotion twice that.
Can I add check marks to each line?
Not through props. The lines are text only; add an icon in the copied file.
Related effects
- Focus Blur Resolve: a single sentence pulling into focus.
- Typewriter: lines typed character by character.
- Per-Word Crossfade: swap one phrase for another.
- Focus Front Swap: a three-line pitch with a focus pull.