Text

Soft Blur In

Per-character fade-in with a gentle blur and upward motion. Apple's signature hero-title reveal.

Soft Blur In preview, rendered with Remotion.

Source

components/kuchi/soft-blur-in.tsx
"use client";
import { Easing, interpolate, useCurrentFrame } from "remotion";
export interface SoftBlurInProps {
text?: string;
blur?: number;
fontSize?: number;
color?: string;
fontWeight?: number;
speed?: number;
className?: string;
}
export function SoftBlurIn({
text = "Introducing Acme",
blur = 12,
fontSize = 72,
color = "#171717",
fontWeight = 600,
speed = 1,
className,
}: SoftBlurInProps) {
const frame = useCurrentFrame() * speed;
const chars = Array.from(text);
const charDurationFrames = 27;
const charTravelFrames = 9;
const staggerFrames = 1;
return (
<div
style={{
position: "absolute",
inset: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
background: "transparent",
}}
>
<span
className={className}
style={{
fontSize,
fontWeight,
color,
letterSpacing: "-0.05em",
fontFamily:
"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
}}
>
{chars.map((char, i) => {
const local = frame - i * staggerFrames;
const easing = Easing.bezier(0.22, 1, 0.36, 1);
const opacity = interpolate(local, [0, charDurationFrames], [0, 1], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
easing,
});
const y = interpolate(local, [0, charTravelFrames], [16, 0], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
easing,
});
const blurAmount = interpolate(
local,
[0, charDurationFrames],
[blur, 0],
{ extrapolateLeft: "clamp", extrapolateRight: "clamp", easing },
);
return (
<span
key={i}
style={{
display: "inline-block",
whiteSpace: "pre",
backfaceVisibility: "hidden",
transformOrigin: "50% 55%",
opacity,
translate: `0 ${y}px`,
filter: `blur(${blurAmount}px)`,
}}
>
{char}
</span>
);
})}
</span>
</div>
);
}