Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "word-burst-cards",
"title": "Word Burst Cards",
"description": "The Remocn wordmark holds the centre while UI cards and photos burst outward around it.",
"dependencies": ["remotion", "@remotion/google-fonts"],
"registryDependencies": ["@remocn/gsh"],
"files": [
{
"path": "registry/remocn/word-burst-cards/index.tsx",
"content": "\"use client\";\n\nimport { loadFont as loadHanken } from \"@remotion/google-fonts/HankenGrotesk\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport { type ReactNode, useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n AbsoluteFill,\n continueRender,\n delayRender,\n Easing,\n Img,\n interpolate,\n random,\n spring,\n staticFile,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround, gshParams } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst hanken = loadHanken(\"normal\", {\n weights: [\"300\", \"400\"],\n subsets: [\"latin\"],\n});\nconst manrope = loadManrope(\"normal\", {\n weights: [\"600\"],\n subsets: [\"latin\"],\n});\n\nconst REMOCN_R_PATH =\n \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\nfunction RemocnLogo({ fontSize, color }: { fontSize: number; color: string }) {\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"baseline\",\n color,\n fontFamily: manrope.fontFamily,\n fontWeight: 600,\n fontSize,\n letterSpacing: \"-0.025em\",\n lineHeight: 1,\n }}\n >\n <svg\n viewBox=\"0 0 124.06 134.26\"\n style={{ height: \"0.76em\", width: \"auto\" }}\n aria-hidden\n >\n <path fill=\"currentColor\" d={REMOCN_R_PATH} />\n </svg>\n <span style={{ marginLeft: \"0.04em\" }}>emocn</span>\n </div>\n );\n}\n\nexport interface WordBurstCardsProps {\n line?: string;\n caption?: string;\n images?: string[];\n accent?: string;\n ink?: string;\n theme?: \"dark\" | \"light\";\n ground?: GshPresetId;\n groundParams?: Partial<GradientParams>;\n reverse?: boolean;\n burstAt?: number;\n showLogo?: boolean;\n seed?: number;\n}\n\nconst DEFAULT_IMAGES = [\n \"reel/reel-1.jpg\",\n \"templates/product-showcase/sculpture.jpg\",\n \"reel/reel-4.jpg\",\n \"templates/brand-guidelines/chair.jpg\",\n \"templates/launch-anything/earth.jpg\",\n \"templates/product-showcase/courtyard.jpg\",\n \"reel/reel-6.jpg\",\n \"templates/brand-guidelines/materials.jpg\",\n];\n\nconst LIGHT_GROUND: Partial<GradientParams> = {\n kind: \"mist\",\n background: \"#f2efe9\",\n colors: [\"#f9e6ee\", \"#f4eccb\", \"#dfe3f7\", \"#f2efe9\"],\n blur: 0.85,\n warp: 0.4,\n seed: 11,\n grain: 0.18,\n};\n\nconst THEMES = {\n dark: {\n ink: \"#f3f1ec\",\n muted: \"rgba(243,241,236,0.6)\",\n accent: \"#5a78ff\",\n card: \"rgba(22,22,30,0.94)\",\n bar: \"rgba(255,255,255,0.16)\",\n barStrong: \"rgba(255,255,255,0.42)\",\n ground: \"earthshine\" as GshPresetId | undefined,\n groundParams: undefined as Partial<GradientParams> | undefined,\n groundOffset: 4,\n scrim: \"3,4,10\",\n scrimAlpha: 0.5,\n shadow:\n \"0 1px 2px rgba(0,0,0,0.35), 0 12px 28px rgba(0,0,0,0.34), 0 34px 80px rgba(0,0,0,0.4)\",\n hairline:\n \"inset 0 0 0 1px rgba(255,255,255,0.09), inset 0 1px 0 rgba(255,255,255,0.07)\",\n },\n light: {\n ink: \"#17171b\",\n muted: \"rgba(23,23,27,0.55)\",\n accent: \"#2f5bff\",\n card: \"#ffffff\",\n bar: \"rgba(23,23,27,0.1)\",\n barStrong: \"rgba(23,23,27,0.34)\",\n ground: undefined as GshPresetId | undefined,\n groundParams: LIGHT_GROUND as Partial<GradientParams> | undefined,\n groundOffset: 3,\n scrim: \"242,239,233\",\n scrimAlpha: 0.3,\n shadow:\n \"0 1px 2px rgba(30,24,20,0.07), 0 10px 24px rgba(30,24,20,0.09), 0 30px 70px rgba(30,24,20,0.13)\",\n hairline: \"inset 0 0 0 1px rgba(0,0,0,0.06)\",\n },\n};\n\nconst BEAT = {\n lineIn: -6,\n burst: 30,\n wordGap: 4,\n letterGap: 0.5,\n logo: 60,\n caption: 66,\n};\n\nconst FONT_PX = 200;\nconst TRACK = -0.03;\nconst FOCAL = 1000;\nconst RISE = Easing.bezier(0.32, 0.72, 0, 1);\nconst CAMERA = Easing.bezier(0.87, 0, 0.13, 1);\nconst CLAMP = {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n} as const;\nconst BURST = { mass: 0.9, damping: 22, stiffness: 90 };\nconst LAND = { mass: 0.8, damping: 18, stiffness: 160 };\n\ntype Measure = (s: string) => number;\n\nfunction buildMeasure(_version: number): Measure {\n const ctx = document.createElement(\"canvas\").getContext(\"2d\");\n const cache: Record<string, number> = {};\n return (s: string) => {\n if (cache[s] === undefined) {\n if (!ctx) return s.length * 0.52;\n ctx.font = `400 ${FONT_PX}px \"${hanken.fontFamily}\"`;\n cache[s] =\n ctx.measureText(s).width / FONT_PX +\n TRACK * Math.max(0, Array.from(s).length - 1);\n }\n return cache[s];\n };\n}\n\nfunction useMeasure() {\n const [version, setVersion] = useState(0);\n const [handle] = useState(() => delayRender(\"word-burst-cards: fonts\"));\n const released = useRef(false);\n useEffect(() => {\n let live = true;\n const bump = () => {\n if (live) setVersion((v) => v + 1);\n };\n document.fonts.addEventListener(\"loadingdone\", bump);\n Promise.all([\n hanken.waitUntilDone(),\n manrope.waitUntilDone(),\n document.fonts.load(`400 100px \"${hanken.fontFamily}\"`),\n ])\n .catch(() => undefined)\n .then(() => {\n bump();\n if (!released.current) {\n released.current = true;\n continueRender(handle);\n }\n });\n return () => {\n live = false;\n document.fonts.removeEventListener(\"loadingdone\", bump);\n };\n }, [handle]);\n return useMemo(() => buildMeasure(version), [version]);\n}\n\nconst resolveSrc = (src: string) =>\n /^(https?:|data:|\\/)/.test(src) ? src : staticFile(src);\n\ntype Kind = \"img\" | \"toggle\" | \"progress\" | \"profile\" | \"play\" | \"chart\";\nconst KINDS: Kind[] = [\n \"img\",\n \"toggle\",\n \"img\",\n \"progress\",\n \"img\",\n \"profile\",\n \"img\",\n \"play\",\n \"img\",\n \"chart\",\n];\n\ninterface Glyph {\n ch: string;\n x: number;\n y: number;\n w: number;\n word: number;\n tb: number;\n}\n\ninterface CardSpec {\n glyph: number;\n kind: Kind;\n img: number;\n w: number;\n h: number;\n tx: number;\n ty: number;\n tz: number;\n ry: number;\n rx: number;\n rz: number;\n dz: number;\n dx: number;\n dy: number;\n}\n\nfunction CardBody({\n kind,\n w,\n h,\n img,\n accent,\n t,\n}: {\n kind: Kind;\n w: number;\n h: number;\n img: string;\n accent: string;\n t: (typeof THEMES)[\"dark\"];\n}) {\n if (kind === \"img\") {\n return (\n <Img\n src={img}\n style={{\n width: \"100%\",\n height: \"100%\",\n objectFit: \"cover\",\n display: \"block\",\n }}\n />\n );\n }\n const u = Math.min(w, h) / 10;\n const bar = (width: string, strong = false) => (\n <div\n style={{\n height: u * 0.75,\n width,\n borderRadius: u,\n background: strong ? t.barStrong : t.bar,\n }}\n />\n );\n const pad = u * 1.4;\n const wrap = (children: ReactNode) => (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: pad,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n background: t.card,\n }}\n >\n {children}\n </div>\n );\n if (kind === \"toggle\") {\n return wrap(\n <>\n {bar(\"55%\", true)}\n <div style={{ display: \"flex\", alignItems: \"center\", gap: u }}>\n <div\n style={{\n flex: 1,\n display: \"flex\",\n flexDirection: \"column\",\n gap: u * 0.7,\n }}\n >\n {bar(\"80%\")}\n {bar(\"50%\")}\n </div>\n <div\n style={{\n width: u * 3.6,\n height: u * 2,\n borderRadius: u * 2,\n background: accent,\n position: \"relative\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n right: u * 0.25,\n top: u * 0.25,\n width: u * 1.5,\n height: u * 1.5,\n borderRadius: u * 2,\n background: \"#ffffff\",\n }}\n />\n </div>\n </div>\n </>,\n );\n }\n if (kind === \"progress\") {\n return wrap(\n <>\n <div style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n {bar(\"45%\", true)}\n {bar(\"18%\")}\n </div>\n <div\n style={{\n height: u * 0.9,\n borderRadius: u,\n background: t.bar,\n overflow: \"hidden\",\n }}\n >\n <div style={{ width: \"64%\", height: \"100%\", background: accent }} />\n </div>\n </>,\n );\n }\n if (kind === \"profile\") {\n return wrap(\n <>\n <div style={{ display: \"flex\", alignItems: \"center\", gap: u }}>\n <div\n style={{\n width: u * 3,\n height: u * 3,\n borderRadius: u * 3,\n overflow: \"hidden\",\n flexShrink: 0,\n }}\n >\n <Img\n src={img}\n style={{ width: \"100%\", height: \"100%\", objectFit: \"cover\" }}\n />\n </div>\n <div\n style={{\n flex: 1,\n display: \"flex\",\n flexDirection: \"column\",\n gap: u * 0.6,\n }}\n >\n {bar(\"70%\", true)}\n {bar(\"45%\")}\n </div>\n </div>\n {bar(\"90%\")}\n </>,\n );\n }\n if (kind === \"play\") {\n return wrap(\n <>\n <div\n style={{\n width: u * 3.2,\n height: u * 3.2,\n borderRadius: u * 3.2,\n background: accent,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <svg width={u * 1.6} height={u * 1.6} viewBox=\"0 0 24 24\" aria-hidden>\n <path d=\"M8 5.5v13l10.5-6.5z\" fill=\"#ffffff\" />\n </svg>\n </div>\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: u * 0.6 }}>\n {bar(\"75%\", true)}\n {bar(\"40%\")}\n </div>\n </>,\n );\n }\n return wrap(\n <>\n {bar(\"40%\", true)}\n <svg\n viewBox=\"0 0 100 40\"\n width=\"100%\"\n height={h * 0.42}\n preserveAspectRatio=\"none\"\n aria-hidden\n >\n <path\n d=\"M0 34 C 14 30, 20 22, 32 24 S 52 12, 64 15 S 84 4, 100 6\"\n fill=\"none\"\n stroke={accent}\n strokeWidth={2.2}\n vectorEffect=\"non-scaling-stroke\"\n />\n </svg>\n </>,\n );\n}\n\nexport function WordBurstCards({\n line = \"Every screen you built, in motion\",\n caption = \"Launch films from your product\",\n images = DEFAULT_IMAGES,\n accent,\n ink,\n theme = \"dark\",\n ground,\n groundParams,\n reverse = false,\n burstAt = BEAT.burst,\n showLogo = true,\n seed = 3,\n}: WordBurstCardsProps) {\n const frame = useCurrentFrame();\n const { width: W, height: H, fps, durationInFrames } = useVideoConfig();\n const c = THEMES[theme];\n const inkC = ink ?? c.ink;\n const hi = accent ?? c.accent;\n const preset = ground ?? (groundParams ? undefined : c.ground);\n const gParams = groundParams ?? (ground ? undefined : c.groundParams);\n const bg = gshParams(preset, gParams).background;\n const portrait = H > W * 1.1;\n const m = useMeasure();\n const pics = (images.length > 0 ? images : DEFAULT_IMAGES).map(resolveSrc);\n const tt = reverse ? durationInFrames - 1 - frame : frame;\n const logoAt = burstAt + (BEAT.logo - BEAT.burst);\n const captionAt = burstAt + (BEAT.caption - BEAT.burst);\n\n let content: ReactNode = <div />;\n if (m) {\n const words = line.split(\" \").filter((w) => w.length > 0);\n const maxW = (portrait ? 0.84 : 0.8) * W;\n const maxLines = portrait ? 4 : 2;\n let size = portrait ? W * 0.17 : H * 0.2;\n let rows: string[][] = [];\n for (let k = 0; k < 30; k++) {\n rows = [];\n let cur: string[] = [];\n for (const w of words) {\n const next = [...cur, w];\n if (cur.length > 0 && m(next.join(\" \")) * size > maxW) {\n rows.push(cur);\n cur = [w];\n } else {\n cur = next;\n }\n }\n if (cur.length > 0) rows.push(cur);\n const fits = rows.every((r) => m(r.join(\" \")) * size <= maxW);\n if (rows.length <= maxLines && fits) break;\n size *= 0.93;\n }\n const LH = size * 1.08;\n const cx = W / 2;\n const cy = H / 2;\n const top = cy - (rows.length * LH) / 2;\n const glyphs: Glyph[] = [];\n let wi = 0;\n rows.forEach((r, ri) => {\n const text = r.join(\" \");\n const x0 = cx - (m(text) * size) / 2;\n const y = top + LH * (ri + 0.5);\n let inWord = 0;\n Array.from(text).forEach((ch, i) => {\n if (ch === \" \") {\n wi++;\n inWord = 0;\n return;\n }\n const pre = text.slice(0, i);\n const xL = x0 + (i === 0 ? 0 : m(pre) + TRACK) * size;\n const w = (m(ch) - TRACK) * size;\n glyphs.push({\n ch,\n x: xL,\n y,\n w,\n word: wi,\n tb: burstAt + wi * BEAT.wordGap + inWord * BEAT.letterGap,\n });\n inWord++;\n });\n wi++;\n });\n\n let r = 0;\n const rnd = () => random(`wbc-${seed}-${r++}`);\n const unit = portrait ? W * 0.15 : H * 0.15;\n const cards: CardSpec[] = glyphs.map((g, gi) => {\n const kind = KINDS[(gi + seed) % KINDS.length];\n const aspect =\n kind === \"img\" ? [1.32, 0.8, 1.0, 1.5][Math.floor(rnd() * 4)] : 1.45;\n const base = unit * (0.85 + rnd() * 0.45);\n const w = aspect >= 1 ? base * Math.sqrt(aspect) : base * aspect;\n const h = w / aspect;\n const gx = g.x + g.w / 2 - cx;\n const gy = g.y - cy;\n const golden = gi * 2.39996 + seed;\n const toward = Math.atan2(gy * 1.6, gx);\n const ang =\n Math.atan2(\n Math.sin(golden) * 0.7 + Math.sin(toward) * 0.3,\n Math.cos(golden) * 0.7 + Math.cos(toward) * 0.3,\n ) +\n (rnd() - 0.5) * 0.3;\n const rx = (portrait ? 0.36 : 0.4) * W;\n const ry = (portrait ? 0.34 : 0.36) * H;\n const rad = 0.66 + rnd() * 0.44;\n const tz = -520 + rnd() * 680;\n const back = (FOCAL - tz) / FOCAL;\n let sx = Math.cos(ang) * rx * rad;\n let sy = Math.sin(ang) * ry * rad;\n const ps = FOCAL / (FOCAL - tz);\n const cw = (portrait ? W * 0.4 : W * 0.25) + (w * ps) / 2;\n const ch = (portrait ? H * 0.14 : H * 0.17) + (h * ps) / 2;\n if (Math.abs(sx) < cw && Math.abs(sy) < ch) {\n const k = Math.min(\n cw / Math.max(1, Math.abs(sx)),\n ch / Math.max(1, Math.abs(sy)),\n );\n sx *= k;\n sy *= k;\n }\n return {\n glyph: gi,\n kind,\n img: Math.floor(rnd() * pics.length),\n w,\n h,\n tx: sx * back,\n ty: sy * back,\n tz,\n ry: (rnd() - 0.5) * 36,\n rx: (rnd() - 0.5) * 24,\n rz: (rnd() - 0.5) * 10,\n dz: 0.4 + rnd() * 0.6,\n dx: (rnd() - 0.5) * 0.5,\n dy: (rnd() - 0.5) * 0.4,\n };\n });\n\n const persp = (z: number) => FOCAL / (FOCAL - z);\n const cardAt = (cs: CardSpec, t: number) => {\n const g = glyphs[cs.glyph];\n const d = t - g.tb;\n const p = spring({ frame: d, fps, config: BURST });\n const life = Math.max(0, d);\n const z = cs.tz * p + cs.dz * life * p;\n const s = persp(z);\n const gx = g.x + g.w / 2 - cx;\n const gy = g.y - cy;\n const wx = gx + (cs.tx - gx) * p + cs.dx * life * p;\n const wy = gy + (cs.ty - gy) * p + cs.dy * life * p;\n return { p, z, s, x: cx + wx * s, y: cy + wy * s, d };\n };\n\n const lineIn = (wIdx: number) =>\n reverse\n ? 1\n : interpolate(tt - BEAT.lineIn - wIdx * 2, [0, 12], [0, 1], {\n ...CLAMP,\n easing: RISE,\n });\n\n const letterEls = glyphs.map((g, gi) => {\n const d = tt - g.tb;\n const out = interpolate(d, [0, 4], [0, 1], CLAMP);\n if (out >= 1) return null;\n const rise = lineIn(g.word);\n return (\n <div\n key={`g${gi}`}\n style={{\n position: \"absolute\",\n left: g.x,\n top: g.y - LH / 2,\n height: LH,\n overflow: \"hidden\",\n display: \"flex\",\n alignItems: \"center\",\n }}\n >\n <div\n style={{\n fontFamily: hanken.fontFamily,\n fontWeight: 400,\n fontSize: size,\n lineHeight: 1,\n whiteSpace: \"pre\",\n color: inkC,\n opacity: (1 - out) * Math.min(1, rise * 1.4),\n transform: `translateY(${((1 - rise) * LH * 0.9).toFixed(2)}px) scale(${(1 + out * 0.15).toFixed(4)})`,\n filter:\n out > 0.01 ? `blur(${(out * 4).toFixed(2)}px)` : undefined,\n }}\n >\n {g.ch}\n </div>\n </div>\n );\n });\n\n const drawn = cards\n .map((cs) => ({ cs, a: cardAt(cs, tt), b: cardAt(cs, tt - 1) }))\n .filter(({ a }) => a.d >= 0)\n .sort((u, v) => u.a.z - v.a.z);\n\n const cardEls = drawn.map(({ cs, a, b }) => {\n const g = glyphs[cs.glyph];\n const grow = interpolate(a.d, [0, 10], [0, 1], {\n ...CLAMP,\n easing: RISE,\n });\n const from = Math.max(g.w / cs.w, (size * 0.72) / cs.h);\n const sc = (from + (1 - from) * grow) * a.s;\n const vel = Math.hypot(a.x - b.x, a.y - b.y);\n const depthBlur = Math.max(0, -a.z - 120) * 0.008;\n const blur = Math.min(9, depthBlur + Math.max(0, vel - 6) * 0.14);\n const op =\n interpolate(a.d, [0, 3], [0, 1], CLAMP) *\n interpolate(a.z, [-560, -200], [0.55, 1], CLAMP);\n const tilt = 1 - a.p * 0.6;\n return (\n <div\n key={`c${cs.glyph}`}\n style={{\n position: \"absolute\",\n left: a.x - cs.w / 2,\n top: a.y - cs.h / 2,\n width: cs.w,\n height: cs.h,\n transform: `perspective(900px) rotateX(${(cs.rx * tilt).toFixed(2)}deg) rotateY(${(cs.ry * tilt).toFixed(2)}deg) rotateZ(${(cs.rz * a.p).toFixed(2)}deg) scale(${sc.toFixed(4)})`,\n opacity: op,\n filter: blur > 0.3 ? `blur(${blur.toFixed(2)}px)` : undefined,\n borderRadius: Math.min(cs.w, cs.h) * 0.1,\n overflow: \"hidden\",\n boxShadow: `${c.shadow}, ${c.hairline}`,\n background: c.card,\n }}\n >\n <CardBody\n kind={cs.kind}\n w={cs.w}\n h={cs.h}\n img={pics[cs.img]}\n accent={hi}\n t={c}\n />\n </div>\n );\n });\n\n const logoSize = portrait ? W * 0.15 : H * 0.14;\n const capSize = Math.max(H * 0.026, logoSize * 0.3);\n const logoP = spring({ frame: tt - logoAt, fps, config: LAND });\n const capP = interpolate(tt - captionAt, [0, 12], [0, 1], {\n ...CLAMP,\n easing: RISE,\n });\n const centre = showLogo ? (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: cy - logoSize * 0.75,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: logoSize * 0.32,\n zIndex: 50,\n }}\n >\n <div\n style={{\n overflow: \"hidden\",\n padding: `${logoSize * 0.1}px ${logoSize * 0.2}px`,\n }}\n >\n <div\n style={{\n transform: `translateY(${((1 - logoP) * logoSize * 1.3).toFixed(2)}px)`,\n opacity: Math.min(1, logoP * 2),\n }}\n >\n <RemocnLogo fontSize={logoSize} color={inkC} />\n </div>\n </div>\n <div\n style={{\n fontFamily: hanken.fontFamily,\n fontWeight: 300,\n fontSize: capSize,\n letterSpacing: \"-0.01em\",\n color: c.muted,\n whiteSpace: \"pre\",\n opacity: capP,\n transform: `translateY(${((1 - capP) * capSize * 0.8).toFixed(2)}px)`,\n }}\n >\n {caption}\n </div>\n </div>\n ) : null;\n\n const push = interpolate(frame, [0, durationInFrames], [1, 1.035], {\n ...CLAMP,\n easing: CAMERA,\n });\n content = (\n <AbsoluteFill\n style={{\n transform: `scale(${push.toFixed(5)})`,\n transformOrigin: \"50% 50%\",\n }}\n >\n {cardEls}\n {letterEls}\n {centre}\n </AbsoluteFill>\n );\n }\n\n return (\n <AbsoluteFill style={{ background: bg, overflow: \"hidden\" }}>\n <GshGround\n preset={preset}\n params={gParams}\n timeOffset={c.groundOffset}\n timeScale={0.5}\n />\n <AbsoluteFill\n style={{\n background: `radial-gradient(${portrait ? \"95% 50%\" : \"70% 60%\"} at 50% 50%, rgba(${c.scrim},${c.scrimAlpha}) 0%, rgba(${c.scrim},0) 100%)`,\n }}\n />\n {content}\n </AbsoluteFill>\n );\n}\n\nexport default WordBurstCards;\n",
"type": "registry:component",
"target": "components/remocn/word-burst-cards.tsx"
}
],
"type": "registry:component"
}