Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"type": "remotion-element",
"version": 1,
"element": {
"assets": [],
"dependencies": [
{
"name": "@remotion/google-fonts",
"version": null
}
],
"dimensions": null,
"displayName": "Walkout Name",
"initialProps": null,
"slug": "walkout-name",
"sourceCode": "import { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport { loadFont } from \"@remotion/google-fonts/Oswald\";\nimport { AbsoluteFill, Easing, Interactive, Sequence, interpolate, useCurrentFrame, useVideoConfig, type InteractiveBaseProps, type InteractiveTransformProps, type InteractivitySchema, type SequenceControls } from \"remotion\";\nimport React, { forwardRef, useImperativeHandle, useRef, type ComponentProps } from \"react\";\n\nconst { fontFamily: oswald } = loadFont(\"normal\", {\n weights: [\"400\", \"500\"],\n subsets: [\"latin\"],\n});\nconst { fontFamily: serif } = loadSerif(\"italic\", {\n weights: [\"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\n/** Full logo as on remocn.dev: R mark (0.76em tall, baseline-aligned) + \"emocn\" in Manrope 600. */\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\ninterface WalkoutNameProps {\n /** The fighter name, one stacked line per entry. Three short lines read best. */\n name?: string[];\n /** The nickname, set in quotes in a serif italic beside the last line. */\n nickname?: string;\n /** The record, slammed in beside the name. */\n record?: string;\n /** Second stat under the record, filled with the spotlight gradient. */\n finishes?: string;\n /** Small label over the record. */\n recordLabel?: string;\n /** Small billing line, top left. */\n billing?: string;\n /** Small markers: the billing tick and the record rule. */\n accent?: string;\n theme?: \"dark\" | \"light\";\n speed?: number;\n}\n\n// Beat sheet (internal clock = frame + 2, 30fps, speed 1):\n// 0–12 whip-pan lands on an extreme close-up of line 1 (motion-streak ghosts)\n// 12–26 hard cut: line 2 whips in from the left, tighter push\n// 26–37 hard cut: line 3 slams down from 1.7×; frame 31 is the impact frame\n// (one inverted frame) and the camera shakes\n// 37–46 whip-zoom out to the full poster framing\n// 44–62 the \"beam\" spotlight band swings in from the left and parks across\n// the stack; the type inside it knocks out to the stage colour\n// 52–63 record label + record slam in beside the name, then the finishes stat\n// 64–74 the nickname wipes in beside the last line; billing and logo rise\n// 80– fight-poster hold\nconst SHOT_2 = 12;\nconst SHOT_3 = 26;\nconst SLAM_LEN = 5;\nconst WHIP_OUT = 37;\nconst WHIP_OUT_LEN = 9;\nconst BAND_AT = 44;\nconst BAND_LEN = 18;\nconst RECORD_AT = 52;\nconst FINISH_AT = 58;\nconst NICK_AT = 64;\nconst META_AT = 70;\n\nconst SLAM = Easing.bezier(0.12, 0.9, 0.25, 1);\nconst OUT = Easing.bezier(0.22, 1, 0.36, 1);\nconst INOUT = Easing.bezier(0.7, 0, 0.2, 1);\nconst CLAMP = {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n} as const;\n\n// gradients.sh \"beam\": bg #02030a, [#f4f7ff, #8fb4ff, #3d5bff, #1a1660].\nconst BEAM = [\"#F4F7FF\", \"#8FB4FF\", \"#3D5BFF\", \"#1A1660\"] as const;\n\nconst THEMES = {\n dark: {\n stage: \"#0A0A0B\",\n ink: \"#F3F2EF\",\n dim: \"#8A8990\",\n knock: \"#0A0A0B\",\n band: `linear-gradient(90deg, ${BEAM[2]} 0%, ${BEAM[1]} 30%, ${BEAM[0]} 50%, ${BEAM[1]} 70%, ${BEAM[2]} 100%)`,\n edge: BEAM[3],\n stat: `linear-gradient(180deg, ${BEAM[0]} 10%, ${BEAM[1]} 55%, ${BEAM[2]} 100%)`,\n },\n light: {\n stage: \"#F5F4F0\",\n ink: \"#121214\",\n dim: \"#7E7D77\",\n knock: \"#FFFFFF\",\n band: `linear-gradient(90deg, ${BEAM[3]} 0%, ${BEAM[2]} 34%, #5F7BFF 50%, ${BEAM[2]} 66%, ${BEAM[3]} 100%)`,\n edge: BEAM[1],\n stat: `linear-gradient(180deg, ${BEAM[2]} 0%, #2A2F9E 60%, ${BEAM[3]} 100%)`,\n },\n} as const;\n\n// Oswald 500 metrics (em): cap height 0.81, cap top sits 0.142 below a\n// line-height-1 box, average uppercase advance ~0.5.\nconst CAP = 0.81;\nconst CAP_TOP = 0.142;\nconst ADV = 0.5;\n\nfunction ramp(t: number, from: number, len: number) {\n return interpolate(t, [from, from + len], [0, 1], CLAMP);\n}\n\n/** Decaying camera shake that starts at `at`, stepped per frame. */\nfunction shake(t: number, at: number, len: number, amp: number) {\n const d = Math.floor(t - at);\n if (d < 0 || d >= len) return { x: 0, y: 0 };\n const k = (1 - d / len) ** 2;\n return {\n x: amp * k * Math.sin(d * 2.4 + 0.6),\n y: amp * 0.6 * k * Math.cos(d * 3.1 + 0.3),\n };\n}\n\ninterface Cam {\n cx: number;\n cy: number;\n s: number;\n dx: number;\n}\n\nfunction WalkoutNameBase({\n name = [\"The\", \"Launch\", \"Kid\"],\n nickname = \"Ships before lunch\",\n record = \"12–0\",\n finishes = \"12 KO\",\n recordLabel = \"Pro record\",\n billing = \"Main event · Tonight\",\n accent = \"#3B5BFD\",\n theme = \"dark\",\n speed = 1,\n}: WalkoutNameProps) {\n const t = useCurrentFrame() * speed + 2;\n const { width: W, height: H } = useVideoConfig();\n const c = THEMES[theme];\n const u = Math.min(W / 1280, H / 720);\n\n const lines = name.slice(0, 4).map((l) => l.toUpperCase());\n const n = Math.max(1, lines.length);\n\n // ── Poster layout (world coordinates = poster pixels) ─────────────────────\n const x0 = 64 * u;\n const gap = 16 * u;\n const longest = Math.max(...lines.map((l) => l.length), 1);\n const nameFs = Math.min(\n 200 * u,\n (0.52 * W) / (longest * ADV),\n (0.72 * H - (n - 1) * gap) / (n * CAP),\n );\n const capH = CAP * nameFs;\n const stackH = n * capH + (n - 1) * gap;\n const top = (H - stackH) / 2 + 2 * u;\n const lineTop = (i: number) => top + i * (capH + gap);\n const lineW = (i: number) => lines[i].length * ADV * nameFs;\n const lineCenter = (i: number) => ({\n x: x0 + lineW(i) / 2,\n y: lineTop(i) + capH / 2,\n });\n\n // ── Shots ─────────────────────────────────────────────────────────────────\n // One shot per line: line i becomes visible when its shot starts.\n const shotAt = [0, SHOT_2, SHOT_3, SHOT_3 + 6].slice(0, n);\n const lastShot = shotAt[n - 1];\n const whipOut = n === 1 ? SHOT_2 : WHIP_OUT + (n > 3 ? 6 : 0);\n const poster: Cam = { cx: W / 2, cy: H / 2, s: 1, dx: 0 };\n\n const framing = (i: number): Cam => {\n const p = lineCenter(i);\n const s = Math.min(2.4, (0.62 * W) / Math.max(lineW(i), 1));\n return { cx: p.x, cy: p.y, s: Math.max(1.45, s), dx: 0 };\n };\n\n const camAt = (tt: number): Cam => {\n if (tt >= whipOut) {\n const p = INOUT(ramp(tt, whipOut, WHIP_OUT_LEN));\n const f = framing(n - 1);\n return {\n cx: interpolate(p, [0, 1], [f.cx, poster.cx]),\n cy: interpolate(p, [0, 1], [f.cy, poster.cy]),\n s: interpolate(p, [0, 1], [f.s * 1.04, 1]),\n dx: 0,\n };\n }\n let i = 0;\n for (let k = 0; k < n; k++) if (tt >= shotAt[k]) i = k;\n const f = framing(i);\n const local = tt - shotAt[i];\n const push = 1 + 0.04 * ramp(local, 0, 14);\n // Lines 1 and 2 whip in (from the right, then from the left); the last\n // line lands in place and slams instead.\n const whipping = i < n - 1 || n === 1;\n const dir = i % 2 === 0 ? 1 : -1;\n const dx = whipping ? dir * 0.95 * W * (1 - OUT(ramp(local, 0, 7))) : 0;\n return { ...f, s: f.s * push, dx };\n };\n\n // Ghosts only during whips, never across a hard cut.\n const shotStart = (tt: number) => {\n if (tt >= whipOut) return whipOut;\n let s0 = 0;\n for (let k = 0; k < n; k++) if (tt >= shotAt[k]) s0 = shotAt[k];\n return s0;\n };\n const cam = camAt(t);\n const prev = camAt(t - 1);\n const speedPx =\n Math.abs(cam.dx - prev.dx) +\n Math.abs(W / 2 - cam.s * cam.cx - (W / 2 - prev.s * prev.cx)) +\n Math.abs(cam.s - prev.s) * W * 0.5;\n const ghosts = speedPx > 18 * u ? [0.32, 0.2, 0.12, 0.07] : [];\n\n // ── Impact on the last line ───────────────────────────────────────────────\n const slamP = SLAM(ramp(t, lastShot, SLAM_LEN));\n const lastScale = n > 1 ? 1.7 - 0.7 * slamP : 1;\n const hit = lastShot + SLAM_LEN;\n const inverted = n > 1 && t >= hit && t < hit + speed;\n const s1 = n > 1 ? shake(t, hit, 9, 14 * u) : { x: 0, y: 0 };\n const s2 = shake(t, RECORD_AT + SLAM_LEN, 6, 5 * u);\n const s3 = shake(t, FINISH_AT + SLAM_LEN, 6, 5 * u);\n const shX = s1.x + s2.x + s3.x;\n const shY = s1.y + s2.y + s3.y;\n\n // ── Spotlight band (world coordinates, leaning right) ─────────────────────\n const bandW = 0.19 * W;\n const lean = Math.tan((20 * Math.PI) / 180);\n const bandIn = OUT(ramp(t, BAND_AT, BAND_LEN));\n const bandDrift = interpolate(t, [BAND_AT + BAND_LEN, 160], [0, 0.03], CLAMP);\n const bandCx =\n interpolate(bandIn, [0, 1], [-0.35 * W, 0.4 * W]) + bandDrift * W;\n const bandPoly = (cx: number, w: number) => {\n const ext = H * 0.4;\n const yT = -ext;\n const yB = H + ext;\n const xAt = (y: number) => cx + (H / 2 - y) * lean;\n return `polygon(${xAt(yT) - w / 2}px ${yT}px, ${xAt(yT) + w / 2}px ${yT}px, ${xAt(yB) + w / 2}px ${yB}px, ${xAt(yB) - w / 2}px ${yB}px)`;\n };\n const showBand = t >= BAND_AT;\n\n // ── Stats column ──────────────────────────────────────────────────────────\n const colX = Math.max(\n x0 + Math.max(...lines.map((_, i) => lineW(i))) + 70 * u,\n 0.6 * W,\n );\n const statFs = 196 * u;\n const labelFs = 19 * u;\n const recordTop = top + 46 * u;\n const finishTop = recordTop + CAP * statFs + 34 * u;\n const recP = SLAM(ramp(t, RECORD_AT, SLAM_LEN));\n const finP = SLAM(ramp(t, FINISH_AT, SLAM_LEN));\n const ruleP = OUT(ramp(t, FINISH_AT - 1, 8));\n\n // ── Nickname + meta ───────────────────────────────────────────────────────\n const nickFs = 74 * u;\n const lastBase = lineTop(n - 1) + capH;\n const nickX = x0 + lineW(n - 1) + 44 * u;\n const nickP = OUT(ramp(t, NICK_AT, 11));\n const metaP = OUT(ramp(t, META_AT, 10));\n\n const text = (\n s: string,\n fs: number,\n color: string,\n extra?: React.CSSProperties,\n ) => (\n <div\n style={{\n fontFamily: oswald,\n fontWeight: 500,\n fontSize: fs,\n lineHeight: 1,\n letterSpacing: \"-0.01em\",\n color,\n whiteSpace: \"nowrap\",\n ...extra,\n }}\n >\n {s}\n </div>\n );\n\n // The name stack, in one colour. Rendered twice: ink, then knocked out\n // to the stage colour inside the band.\n const stack = (ink: string, key: string) => (\n <div key={key} style={{ position: \"absolute\", inset: 0 }}>\n {lines.map((l, i) => {\n if (t < shotAt[i]) return null;\n const isLast = i === n - 1;\n const k = isLast ? lastScale : 1;\n const p = lineCenter(i);\n return (\n <div\n key={`${i}-${l}`}\n style={{\n position: \"absolute\",\n left: x0,\n top: lineTop(i) - CAP_TOP * nameFs,\n transform: `scale(${k})`,\n transformOrigin: `${p.x - x0}px ${CAP_TOP * nameFs + capH / 2}px`,\n opacity: isLast ? ramp(t, lastShot, 2) : 1,\n }}\n >\n {text(l, nameFs, ink, { letterSpacing: \"-0.015em\" })}\n </div>\n );\n })}\n {nickP > 0 ? (\n <div\n style={{\n position: \"absolute\",\n left: nickX,\n top: lastBase - nickFs * 0.86,\n fontFamily: serif,\n fontStyle: \"italic\",\n fontWeight: 400,\n fontSize: nickFs,\n lineHeight: 1,\n letterSpacing: \"-0.01em\",\n color: ink,\n whiteSpace: \"nowrap\",\n clipPath: `inset(-20% ${100 - 100 * nickP}% -20% -5%)`,\n transform: `translateX(${(1 - nickP) * -24 * u}px)`,\n }}\n >\n “{nickname}”\n </div>\n ) : null}\n </div>\n );\n\n const world = (camera: Cam, opacity: number, key: string) => (\n <div\n key={key}\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n width: W,\n height: H,\n transformOrigin: \"0 0\",\n transform: `translate(${W / 2 - camera.s * camera.cx + camera.dx}px, ${H / 2 - camera.s * camera.cy}px) scale(${camera.s})`,\n opacity,\n }}\n >\n {showBand ? (\n <>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n clipPath: bandPoly(bandCx, bandW + 10 * u),\n background: c.edge,\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: bandCx - bandW / 2 - 0.5 * H * lean,\n width: bandW + H * lean,\n top: 0,\n height: H,\n clipPath: `polygon(${H * lean}px 0, 100% 0, calc(100% - ${H * lean}px) 100%, 0 100%)`,\n background: c.band,\n }}\n />\n </>\n ) : null}\n {stack(c.ink, \"ink\")}\n {showBand ? (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n clipPath: bandPoly(bandCx, bandW + 10 * u),\n }}\n >\n {stack(c.knock, \"knock\")}\n </div>\n ) : null}\n </div>\n );\n\n return (\n <AbsoluteFill style={{ background: c.stage, overflow: \"hidden\" }}>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: c.stage,\n filter: inverted ? \"invert(1)\" : undefined,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `translate(${shX}px, ${shY}px)`,\n }}\n >\n {ghosts.map((op, k) => {\n const tt = Math.max(shotStart(t), t - (k + 1) * 0.5);\n return world(camAt(tt), op, `g${k}`);\n })}\n {world(cam, 1, \"main\")}\n\n {/* Stats column: screen space, lands after the whip-out. */}\n {t >= RECORD_AT ? (\n <div\n style={{\n position: \"absolute\",\n left: colX,\n top: recordTop - 44 * u,\n display: \"flex\",\n alignItems: \"center\",\n gap: 12 * u,\n opacity: ramp(t, RECORD_AT, 3),\n fontFamily: oswald,\n fontWeight: 400,\n fontSize: labelFs,\n letterSpacing: \"0.28em\",\n textTransform: \"uppercase\",\n color: c.dim,\n }}\n >\n <div\n style={{ width: 22 * u, height: 3 * u, background: accent }}\n />\n {recordLabel}\n </div>\n ) : null}\n {t >= RECORD_AT ? (\n <div\n style={{\n position: \"absolute\",\n left: colX,\n top: recordTop - CAP_TOP * statFs,\n transform: `scale(${1.55 - 0.55 * recP})`,\n transformOrigin: `0 ${CAP_TOP * statFs + (CAP * statFs) / 2}px`,\n opacity: ramp(t, RECORD_AT, 2),\n }}\n >\n {text(record, statFs, c.ink, {\n fontVariantNumeric: \"tabular-nums\",\n })}\n </div>\n ) : null}\n {ruleP > 0 ? (\n <div\n style={{\n position: \"absolute\",\n left: colX,\n top: finishTop - 18 * u,\n width: 0.3 * W * ruleP,\n height: 2 * u,\n background: c.dim,\n opacity: 0.5,\n }}\n />\n ) : null}\n {t >= FINISH_AT ? (\n <div\n style={{\n position: \"absolute\",\n left: colX,\n top: finishTop - CAP_TOP * statFs,\n transform: `scale(${1.55 - 0.55 * finP})`,\n transformOrigin: `0 ${CAP_TOP * statFs + (CAP * statFs) / 2}px`,\n opacity: ramp(t, FINISH_AT, 2),\n }}\n >\n {text(finishes, statFs, \"transparent\", {\n backgroundImage: c.stat,\n WebkitBackgroundClip: \"text\",\n backgroundClip: \"text\",\n paddingRight: 8 * u,\n })}\n </div>\n ) : null}\n\n {/* Billing top left, logo bottom right. */}\n {metaP > 0 ? (\n <>\n <div\n style={{\n position: \"absolute\",\n left: x0 + 4 * u,\n top: 40 * u,\n display: \"flex\",\n alignItems: \"center\",\n gap: 12 * u,\n opacity: metaP,\n transform: `translateY(${(1 - metaP) * -12 * u}px)`,\n fontFamily: oswald,\n fontWeight: 400,\n fontSize: labelFs,\n letterSpacing: \"0.28em\",\n textTransform: \"uppercase\",\n color: c.dim,\n }}\n >\n <div\n style={{ width: 9 * u, height: 9 * u, background: accent }}\n />\n {billing}\n </div>\n <div\n style={{\n position: \"absolute\",\n right: x0,\n bottom: 40 * u,\n opacity: metaP,\n transform: `translateY(${(1 - metaP) * 12 * u}px)`,\n }}\n >\n <RemocnLogo fontSize={36 * u} color={c.ink} />\n </div>\n </>\n ) : null}\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n\nconst elementSchema = {\n ...Interactive.baseSchema,\n theme: {\n type: \"enum\",\n default: \"dark\",\n variants: {\n dark: {},\n light: {},\n },\n description: \"Theme\",\n },\n accent: {\n type: \"color\",\n default: \"#3B5BFD\",\n description: \"Accent\",\n },\n nickname: {\n type: \"text-content\",\n default: \"Ships before lunch\",\n description: \"Nickname\",\n },\n record: {\n type: \"text-content\",\n default: \"12–0\",\n description: \"Record\",\n },\n finishes: {\n type: \"text-content\",\n default: \"12 KO\",\n description: \"Finishes\",\n },\n recordLabel: {\n type: \"text-content\",\n default: \"Pro record\",\n description: \"Record label\",\n },\n billing: {\n type: \"text-content\",\n default: \"Main event · Tonight\",\n description: \"Billing\",\n },\n speed: {\n type: \"number\",\n default: 1,\n min: 0.25,\n max: 4,\n step: 0.25,\n description: \"Speed\",\n hiddenFromList: false,\n },\n ...Interactive.transformSchema,\n} as const satisfies InteractivitySchema;\n\nconst ELEMENT_PROP_KEYS = new Set([\"theme\",\"accent\",\"nickname\",\"record\",\"finishes\",\"recordLabel\",\"billing\",\"speed\"]);\n\nconst ELEMENT_PROP_DEFAULTS: Record<string, unknown> = {\n theme: \"dark\",\n accent: \"#3B5BFD\",\n nickname: \"Ships before lunch\",\n record: \"12–0\",\n finishes: \"12 KO\",\n recordLabel: \"Pro record\",\n billing: \"Main event · Tonight\",\n speed: 1,\n};\n\ntype WalkoutNameElementProps = InteractiveBaseProps &\n InteractiveTransformProps &\n ComponentProps<typeof WalkoutNameBase>;\n\nconst WalkoutNameInner = forwardRef<\n HTMLDivElement,\n WalkoutNameElementProps & { readonly controls: SequenceControls | undefined }\n>(({ controls, name, style, ...rest }, ref) => {\n const outlineRef = useRef<HTMLDivElement>(null);\n useImperativeHandle(ref, () => outlineRef.current as HTMLDivElement, []);\n const componentProps: Record<string, unknown> = { ...ELEMENT_PROP_DEFAULTS };\n const sequenceProps: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(rest)) {\n if (ELEMENT_PROP_KEYS.has(key)) {\n if (value !== undefined) componentProps[key] = value;\n } else {\n sequenceProps[key] = value;\n }\n }\n return (\n <Sequence\n layout=\"none\"\n {...sequenceProps}\n controls={controls}\n name={name ?? \"<WalkoutName>\"}\n outlineRef={outlineRef}\n >\n <div\n ref={outlineRef}\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...style,\n }}\n >\n <WalkoutNameBase\n {...(componentProps as unknown as ComponentProps<typeof WalkoutNameBase>)}\n />\n </div>\n </Sequence>\n );\n});\n\nexport const WalkoutName = Interactive.withSchema({\n Component: WalkoutNameInner,\n componentName: \"<WalkoutName>\",\n componentIdentity: null,\n schema: elementSchema,\n supportsEffects: false,\n});\n",
"durationInFrames": 78,
"installationMode": "component-owned-sequence"
},
"durationInFrames": 78
}