Micro Scale Fade
A calm, tiny scale pop for subtle premium polish on labels and headings
Installation
$ pnpm dlx shadcn@latest add @remocn/micro-scale-fadeUsage
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}
/>
);Props6
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The text to animate | |
| scaleFrom | number0.96 Starting scale the text grows from as it fades in. Animates to 1. | |
| 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
- scaleFromnumber
Starting scale the text grows from as it fades in. Animates to 1.
Default
0.96 - 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