Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: focus blur resolve

dev_wandry17faa53509e9
diff --git a/content/docs/components.mdx b/content/docs/components.mdx
index 7726d58b..16b0df93 100644
--- a/content/docs/components.mdx
+++ b/content/docs/components.mdx
@@ -61,6 +61,12 @@ Text effects, reveals, and kinetic type.
status: "stable",
href: "/docs/typography/blur-out-up",
},
+ {
+ name: "FocusBlurResolve",
+ description: "A premium focus pull from heavy blur to crisp text, then a soft blur-out exit",
+ status: "stable",
+ href: "/docs/typography/focus-blur-resolve",
+ },
{
name: "StaggeredFadeUp",
description: "Words rise from below with a soft cascading delay",
diff --git a/content/docs/typography/focus-blur-resolve.mdx b/content/docs/typography/focus-blur-resolve.mdx
new file mode 100644
index 00000000..43aa005e
--- /dev/null
+++ b/content/docs/typography/focus-blur-resolve.mdx
@@ -0,0 +1,106 @@
+---
+title: Focus Blur Resolve
+description: A premium focus pull from heavy blur to crisp text, then a soft blur-out exit
+---
+
+<ComponentPreview name="focus-blur-resolve" />
+
+## Installation
+
+<InstallBlock name="focus-blur-resolve" />
+
+## Usage
+
+```tsx
+// 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={90}
+ fps={30}
+ 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:
+
+```tsx
+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={90}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "text",
+ type: "string",
+ required: true,
+ description: "The text to animate",
+ },
+ {
+ name: "blur",
+ type: "number",
+ default: "14",
+ description: "Initial blur radius in pixels the text resolves from. The exit blurs back out automatically.",
+ },
+ {
+ name: "fontSize",
+ type: "number",
+ default: "72",
+ description: "Font size in pixels",
+ },
+ {
+ name: "fontWeight",
+ type: "number",
+ default: "600",
+ description: "CSS font-weight",
+ },
+ {
+ name: "color",
+ type: "string",
+ default: "\"#171717\"",
+ description: "Text color (any valid CSS color)",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the underlying span",
+ },
+ ]}
+/>
diff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdx
index 694b137d..53f9f13e 100644
--- a/content/docs/typography/index.mdx
+++ b/content/docs/typography/index.mdx
@@ -57,6 +57,12 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
status: "stable",
href: "/docs/typography/blur-out-up",
},
+ {
+ name: "FocusBlurResolve",
+ description: "A premium focus pull from heavy blur to crisp text, then a soft blur-out exit",
+ status: "stable",
+ href: "/docs/typography/focus-blur-resolve",
+ },
{
name: "StaggeredFadeUp",
description: "Words rise from below with a soft cascading delay",
diff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.json
index aa375ed1..a5af3664 100644
--- a/content/docs/typography/meta.json
+++ b/content/docs/typography/meta.json
@@ -11,6 +11,7 @@
"micro-scale-fade",
"scale-down-fade",
"blur-out-up",
+ "focus-blur-resolve",
"staggered-fade-up",
"masked-slide-reveal",
"tracking-in",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 9c40d730..13e69491 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -23,6 +23,8 @@ import { ScaleDownFade } from "@/registry/remocn/scale-down-fade";
import { scaleDownFadeConfig } from "@/registry/remocn/scale-down-fade/config";
import { BlurOutUp } from "@/registry/remocn/blur-out-up";
import { blurOutUpConfig } from "@/registry/remocn/blur-out-up/config";
+import { FocusBlurResolve } from "@/registry/remocn/focus-blur-resolve";
+import { focusBlurResolveConfig } from "@/registry/remocn/focus-blur-resolve/config";
import { BrowserFlow } from "@/registry/remocn/browser-flow";
import { browserFlowConfig } from "@/registry/remocn/browser-flow/config";
import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";
@@ -214,6 +216,7 @@ const registry: Record<string, RegistryEntry> = {
"micro-scale-fade": { Component: MicroScaleFade, config: microScaleFadeConfig },
"scale-down-fade": { Component: ScaleDownFade, config: scaleDownFadeConfig },
"blur-out-up": { Component: BlurOutUp, config: blurOutUpConfig },
+ "focus-blur-resolve": { Component: FocusBlurResolve, config: focusBlurResolveConfig },
typewriter: { Component: Typewriter, config: typewriterConfig },
"inline-highlight": {
Component: InlineHighlight,
diff --git a/registry/remocn/focus-blur-resolve/config.ts b/registry/remocn/focus-blur-resolve/config.ts
new file mode 100644
index 00000000..0c7fecc8
--- /dev/null
+++ b/registry/remocn/focus-blur-resolve/config.ts
@@ -0,0 +1,43 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const focusBlurResolveConfig: ComponentConfig = {
+ componentName: "FocusBlurResolve",
+ importPath: "@/components/remocn/focus-blur-resolve",
+ controls: {
+ text: { type: "text", default: "Focus resolves clearly.", label: "Text" },
+ blur: {
+ type: "number",
+ default: 14,
+ min: 1,
+ max: 30,
+ step: 1,
+ label: "Blur",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#ffffff" },
+};
diff --git a/registry/remocn/focus-blur-resolve/index.tsx b/registry/remocn/focus-blur-resolve/index.tsx
new file mode 100644
index 00000000..89bc5c4b
--- /dev/null
+++ b/registry/remocn/focus-blur-resolve/index.tsx
@@ -0,0 +1,113 @@
+"use client";
+
+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
+
+export interface FocusBlurResolveProps {
+ text: string;
+ blur?: number;
+ fontSize?: number;
+ color?: string;
+ fontWeight?: number;
+ speed?: number;
+ className?: string;
+}
+
+export function FocusBlurResolve({
+ text,
+ blur = 14,
+ fontSize = 72,
+ color = "#171717",
+ fontWeight = 600,
+ speed = 1,
+ className,
+}: FocusBlurResolveProps) {
+ const frame = useCurrentFrame() * speed;
+ const { durationInFrames } = useVideoConfig();
+
+ const enterDur = 23;
+ const exitDur = 16;
+ const exitStart = Math.max(enterDur, durationInFrames - exitDur);
+
+ const enterEasing = Easing.bezier(0.22, 1, 0.36, 1);
+ const exitEasing = Easing.bezier(0.64, 0, 0.78, 0);
+
+ const enterP = interpolate(frame, [0, enterDur], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: enterEasing,
+ });
+
+ const exitP = interpolate(frame, [exitStart, durationInFrames], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: exitEasing,
+ });
+
+ const opacity = enterP * (1 - exitP);
+
+ const yEnter = interpolate(frame, [0, enterDur], [14, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: enterEasing,
+ });
+
+ const yExit = interpolate(frame, [exitStart, durationInFrames], [0, -10], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: exitEasing,
+ });
+
+ const y = yEnter + yExit;
+
+ const blurEnter = interpolate(frame, [0, enterDur], [blur, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: enterEasing,
+ });
+
+ const blurExit = interpolate(frame, [exitStart, durationInFrames], [0, 10], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: exitEasing,
+ });
+
+ const blurVal = blurEnter + blurExit;
+
+ const scale = interpolate(frame, [0, enterDur], [1.01, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: enterEasing,
+ });
+
+ return (
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ background: "transparent",
+ }}
+ >
+ <span
+ className={className}
+ style={{
+ fontSize,
+ fontWeight,
+ color,
+ letterSpacing: "-0.03em",
+ fontFamily:
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
+ display: "inline-block",
+ transformOrigin: "50% 50%",
+ opacity,
+ transform: `translateY(${y}px) scale(${scale})`,
+ filter: `blur(${blurVal}px)`,
+ }}
+ >
+ {text}
+ </span>
+ </div>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 275d0a73..08eae2ed 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -131,6 +131,22 @@
}
]
},
+ {
+ "name": "focus-blur-resolve",
+ "type": "registry:component",
+ "title": "Focus Blur Resolve",
+ "description": "A premium focus pull from heavy blur to crisp text, then a soft blur-out exit.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "focus-blur-resolve/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/focus-blur-resolve.tsx"
+ }
+ ]
+ },
{
"name": "typewriter",
"type": "registry:component",