Focus Blur Resolve
Camera-lens focus pull for text in Remotion: a hero word pulls into focus from heavy blur, holds sharp, then softly blurs out at the end of the composition.
In Remotion, Focus Blur Resolve makes a hero word pull into focus from heavy blur like a camera lens, hold sharp, then softly blur out at the end. Use it for a premium title, a hero word or a short phrase in a launch or brand video.
$ pnpm dlx shadcn@latest add @remocn/focus-blur-resolveHow to build this in Remotion
You don't need to wire interpolate() to a CSS blur() filter yourself. Install the component and pass your text:
npx shadcn@latest add @remocn/focus-blur-resolveThe entrance and the exit come from timeline.ts and are two interpolate() curves on Easing.bezier: blur, a small lift and a 1.01 to 1 scale on the way in, blur and lift on the way out. The exit is pinned to the end of the composition, so the hold in the middle is whatever is left.
Good to know
- Length: 90 frames of motion at 30 fps (180 at 60 fps) with the default props. The entrance takes 23 frames and the exit the last 16 frames of the composition; everything between is the sharp hold. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
- Installs:
remotionfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: Geist Sans through the
--font-geist-sansCSS variable, with a system sans fallback. The font is set inline, so change it in the copied file; aclassNamefont does not override an inline style. - Timing: there are no duration or easing props, but the
timingprop moves or stretchesenterandexitby id, for exampletiming={{ enter: { stretch: 1.5 } }}. Easing curves live in the copied file. - It ships single-theme on a transparent background (
#171717text); setcoloror place it in aBackdrop.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { FocusBlurResolve } from "@/components/remocn/focus-blur-resolve";
const FocusBlurResolveScene = () => (
<FocusBlurResolve text="Focus resolves clearly." blur={14} />
);
export const RemotionRoot = () => (
<Composition
id="FocusBlurResolve"
component={FocusBlurResolveScene}
durationInFrames={180}
fps={60}
width={1280}
height={720}
/>
);The text pulls from a heavy blur into sharp focus, holds steady in the middle of the composition, then softly blurs out near the end—so the duration should leave room for the exit animation.
With Backdrop
The component renders transparent — supply the background via Backdrop. It ships single-theme; edit the copied file to re-theme colors.
Pair with Backdrop to place the text inside a full-frame fill with a rounded, shadowed content frame:
import { Composition } from "remotion";
import { FocusBlurResolve } from "@/components/remocn/focus-blur-resolve";
import { Backdrop } from "@/components/remocn/backdrop";
const FocusBlurResolveScene = () => (
<Backdrop fill={{ type: "color", value: "#ffffff" }}>
<FocusBlurResolve text="Focus resolves clearly." blur={14} />
</Backdrop>
);
export const RemotionRoot = () => (
<Composition
id="FocusBlurResolve"
component={FocusBlurResolveScene}
durationInFrames={180}
fps={60}
width={1280}
height={720}
/>
);Props6
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The text to animate | |
| blur | number14 Initial blur radius in pixels the text resolves from. The exit blurs back out automatically. | |
| fontSize | number72 Font size in pixels | |
| fontWeight | number600 CSS font-weight | |
| color | string"#171717" Text color (any valid CSS color) | |
| className | string— Optional className passed to the underlying span | |
- textrequiredstring
The text to animate
- blurnumber
Initial blur radius in pixels the text resolves from. The exit blurs back out automatically.
Default
14 - fontSizenumber
Font size in pixels
Default
72 - fontWeightnumber
CSS font-weight
Default
600 - colorstring
Text color (any valid CSS color)
Default
"#171717" - classNamestring
Optional className passed to the underlying span
Common questions
How do I make a word in Remotion pull into focus from heavy blur like a camera lens?
Install Focus Blur Resolve with npx shadcn@latest add @remocn/focus-blur-resolve and pass text and blur (default 14). It sharpens in over 23 frames, holds, and blurs out over the last 16.
Can I change how long the focus pull takes?
Yes, with the timing prop (enter and exit, in 30 fps frames) or speed for the whole arc.
Can I skip the blur out at the end?
Push the exit past the end with timing={{ exit: { start: 9999 } }}.
Related effects
- Blur Out Up: arrives clean and exits with an upward blur.
- Soft Blur In: letters blur in one by one.
- Fog Rise: a big word materializes out of fog from the center out.
- Tracking In: letter spacing collapses while blur clears.