Soft Blur In
Per-character fade-in with a gentle blur and upward motion. Apple's signature hero-title reveal.
Source
components/kuchi/soft-blur-in.tsx
1"use client";23import { Easing, interpolate, useCurrentFrame } from "remotion";45export interface SoftBlurInProps {6 text?: string;7 blur?: number;8 fontSize?: number;9 color?: string;10 fontWeight?: number;11 speed?: number;12 className?: string;13}1415export function SoftBlurIn({16 text = "Introducing Acme",17 blur = 12,18 fontSize = 72,19 color = "#171717",20 fontWeight = 600,21 speed = 1,22 className,23}: SoftBlurInProps) {24 const frame = useCurrentFrame() * speed;2526 const chars = Array.from(text);27 const charDurationFrames = 27;28 const charTravelFrames = 9;29 const staggerFrames = 1;3031 return (32 <div33 style={{34 position: "absolute",35 inset: 0,36 display: "flex",37 alignItems: "center",38 justifyContent: "center",39 background: "transparent",40 }}41 >42 <span43 className={className}44 style={{45 fontSize,46 fontWeight,47 color,48 letterSpacing: "-0.05em",49 fontFamily:50 "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",51 }}52 >53 {chars.map((char, i) => {54 const local = frame - i * staggerFrames;55 const easing = Easing.bezier(0.22, 1, 0.36, 1);56 const opacity = interpolate(local, [0, charDurationFrames], [0, 1], {57 extrapolateLeft: "clamp",58 extrapolateRight: "clamp",59 easing,60 });61 const y = interpolate(local, [0, charTravelFrames], [16, 0], {62 extrapolateLeft: "clamp",63 extrapolateRight: "clamp",64 easing,65 });66 const blurAmount = interpolate(67 local,68 [0, charDurationFrames],69 [blur, 0],70 { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing },71 );72 return (73 <span74 key={i}75 style={{76 display: "inline-block",77 whiteSpace: "pre",78 backfaceVisibility: "hidden",79 transformOrigin: "50% 55%",80 opacity,81 translate: `0 ${y}px`,82 filter: `blur(${blurAmount}px)`,83 }}84 >85 {char}86 </span>87 );88 })}89 </span>90 </div>91 );92}









