Skip to content

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

feat: micro scale fade

dev_wandry73964cd01024
diff --git a/content/docs/components.mdx b/content/docs/components.mdx
index b7c22870..26d9061c 100644
--- a/content/docs/components.mdx
+++ b/content/docs/components.mdx
@@ -43,6 +43,12 @@ Text effects, reveals, and kinetic type.
status: "stable",
href: "/docs/typography/spring-scale-in",
},
+ {
+ name: "MicroScaleFade",
+ description: "A calm, tiny scale pop for subtle premium polish",
+ status: "stable",
+ href: "/docs/typography/micro-scale-fade",
+ },
{
name: "StaggeredFadeUp",
description: "Words rise from below with a soft cascading delay",
diff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdx
index 9977413b..da615487 100644
--- a/content/docs/typography/index.mdx
+++ b/content/docs/typography/index.mdx
@@ -39,6 +39,12 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
status: "stable",
href: "/docs/typography/spring-scale-in",
},
+ {
+ name: "MicroScaleFade",
+ description: "A calm, tiny scale pop for subtle premium polish",
+ status: "stable",
+ href: "/docs/typography/micro-scale-fade",
+ },
{
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 e2fc47c9..0bf5af27 100644
--- a/content/docs/typography/meta.json
+++ b/content/docs/typography/meta.json
@@ -8,6 +8,7 @@
"bottom-up-letters",
"top-down-letters",
"spring-scale-in",
+ "micro-scale-fade",
"staggered-fade-up",
"masked-slide-reveal",
"tracking-in",
diff --git a/content/docs/typography/micro-scale-fade.mdx b/content/docs/typography/micro-scale-fade.mdx
new file mode 100644
index 00000000..55e6e702
--- /dev/null
+++ b/content/docs/typography/micro-scale-fade.mdx
@@ -0,0 +1,104 @@
+---
+title: Micro Scale Fade
+description: A calm, tiny scale pop for subtle premium polish on labels and headings
+---
+
+<ComponentPreview name="micro-scale-fade" />
+
+## Installation
+
+<InstallBlock name="micro-scale-fade" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { MicroScaleFade } from "@/components/remocn/micro-scale-fade";
+
+const MicroScaleFadeScene = () => (
+ <MicroScaleFade text="Welcome to motion." scaleFrom={0.96} />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="MicroScaleFade"
+ component={MicroScaleFadeScene}
+ durationInFrames={60}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+### 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 { MicroScaleFade } from "@/components/remocn/micro-scale-fade";
+import { Backdrop } from "@/components/remocn/backdrop";
+
+const MicroScaleFadeScene = () => (
+ <Backdrop fill={{ type: "color", value: "#ffffff" }}>
+ <MicroScaleFade text="Welcome to motion." scaleFrom={0.96} />
+ </Backdrop>
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="MicroScaleFade"
+ component={MicroScaleFadeScene}
+ durationInFrames={60}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "text",
+ type: "string",
+ required: true,
+ description: "The text to animate",
+ },
+ {
+ name: "scaleFrom",
+ type: "number",
+ default: "0.96",
+ description: "Starting scale the text grows from as it fades in. Animates to 1.",
+ },
+ {
+ 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/registry/__index__.tsx b/registry/__index__.tsx
index 47e8fead..c9bac6d7 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -17,6 +17,8 @@ import { TopDownLetters } from "@/registry/remocn/top-down-letters";
import { topDownLettersConfig } from "@/registry/remocn/top-down-letters/config";
import { SpringScaleIn } from "@/registry/remocn/spring-scale-in";
import { springScaleInConfig } from "@/registry/remocn/spring-scale-in/config";
+import { MicroScaleFade } from "@/registry/remocn/micro-scale-fade";
+import { microScaleFadeConfig } from "@/registry/remocn/micro-scale-fade/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";
@@ -205,6 +207,7 @@ const registry: Record<string, RegistryEntry> = {
"bottom-up-letters": { Component: BottomUpLetters, config: bottomUpLettersConfig },
"top-down-letters": { Component: TopDownLetters, config: topDownLettersConfig },
"spring-scale-in": { Component: SpringScaleIn, config: springScaleInConfig },
+ "micro-scale-fade": { Component: MicroScaleFade, config: microScaleFadeConfig },
typewriter: { Component: Typewriter, config: typewriterConfig },
"inline-highlight": {
Component: InlineHighlight,
diff --git a/registry/remocn/micro-scale-fade/config.ts b/registry/remocn/micro-scale-fade/config.ts
new file mode 100644
index 00000000..84e1bd8f
--- /dev/null
+++ b/registry/remocn/micro-scale-fade/config.ts
@@ -0,0 +1,43 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const microScaleFadeConfig: ComponentConfig = {
+ componentName: "MicroScaleFade",
+ importPath: "@/components/remocn/micro-scale-fade",
+ controls: {
+ text: { type: "text", default: "Welcome to motion.", label: "Text" },
+ scaleFrom: {
+ type: "number",
+ default: 0.96,
+ min: 0.8,
+ max: 1,
+ step: 0.01,
+ label: "Scale from",
+ },
+ 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: 60,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#ffffff" },
+};
diff --git a/registry/remocn/micro-scale-fade/index.tsx b/registry/remocn/micro-scale-fade/index.tsx
new file mode 100644
index 00000000..89a888d2
--- /dev/null
+++ b/registry/remocn/micro-scale-fade/index.tsx
@@ -0,0 +1,69 @@
+"use client";
+
+import { Easing, interpolate, useCurrentFrame } from "remotion";
+
+export interface MicroScaleFadeProps {
+ text: string;
+ scaleFrom?: number;
+ fontSize?: number;
+ color?: string;
+ fontWeight?: number;
+ speed?: number;
+ className?: string;
+}
+
+export function MicroScaleFade({
+ text,
+ scaleFrom = 0.96,
+ fontSize = 72,
+ color = "#171717",
+ fontWeight = 600,
+ speed = 1,
+ className,
+}: MicroScaleFadeProps) {
+ const frame = useCurrentFrame() * speed;
+ const easing = Easing.bezier(0.32, 0.72, 0, 1);
+
+ const opacity = interpolate(frame, [0, 18], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing,
+ });
+
+ const scale = interpolate(frame, [0, 18], [scaleFrom, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing,
+ });
+
+ 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: `scale(${scale})`,
+ }}
+ >
+ {text}
+ </span>
+ </div>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index fccb7751..c9de099b 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -83,6 +83,22 @@
}
]
},
+ {
+ "name": "micro-scale-fade",
+ "type": "registry:component",
+ "title": "Micro Scale Fade",
+ "description": "A calm, tiny scale pop used as subtle premium polish for labels and headings.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "micro-scale-fade/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/micro-scale-fade.tsx"
+ }
+ ]
+ },
{
"name": "typewriter",
"type": "registry:component",