Idea Promo
An 18-second AI site-builder launch with its soundtrack: "Idea" punches in, tools orbit, a prompt is typed and sent, a burst of circles reveals generated sites, and it ends on "finally in action".
Install using CLI
npx shadcn@latest add https://www.sycamore.to/r/idea-promo.jsonDownload assets (fonts and images)
node sycamore-assets.mjs idea-promoUsage
import { IdeaPromo } from "./sycamore/idea-promo/IdeaPromo";
<Composition
id="IdeaPromo"
component={IdeaPromo}
durationInFrames={552}
fps={30}
width={1280}
height={720}
/>Install manually
Copy the source code into src/sycamore/idea-promo/
// Idea promo: an 18-second purple motion graphic ("You have an Idea ... finally in
// action") rebuilt section by section from a reference, at the reference's own size and
// frame rate so frames compare 1:1.
import React from "react";
import { AbsoluteFill, Html5Audio, Sequence, staticFile } from "remotion";
import { BuildingHarder, BUILDING_HARDER_FRAMES } from "./BuildingHarder";
import { DevelopersDesigners, DEVELOPERS_DESIGNERS_FRAMES } from "./DevelopersDesigners";
import { EndlessTools, ENDLESS_TOOLS_FRAMES } from "./EndlessTools";
import { NowWhat, NOW_WHAT_FRAMES } from "./NowWhat";
import { Outro, OUTRO_FRAMES } from "./Outro";
import { PromptBox, PROMPT_BOX_FRAMES } from "./PromptBox";
import { RefineLaunch, REFINE_LAUNCH_FRAMES } from "./RefineLaunch";
import { SiteBurst, SITE_BURST_FRAMES } from "./SiteBurst";
import { Suddenly, SUDDENLY_FRAMES } from "./Suddenly";
import { VisionSite, VISION_SITE_FRAMES } from "./VisionSite";
import { WhatIfSkip, WHAT_IF_SKIP_FRAMES } from "./WhatIfSkip";
import { YouHaveAnIdea, YOU_HAVE_AN_IDEA_FRAMES } from "./YouHaveAnIdea";
export const IDEA_FPS = 30;
export const IDEA_WIDTH = 1280;
export const IDEA_HEIGHT = 720;
const SECTIONS: Array<{ name: string; frames: number; component: React.FC }> = [
{ name: "1 You have an Idea", frames: YOU_HAVE_AN_IDEA_FRAMES, component: YouHaveAnIdea },
{ name: "2 Now What", frames: NOW_WHAT_FRAMES, component: NowWhat },
{ name: "3 Developers a Designers", frames: DEVELOPERS_DESIGNERS_FRAMES, component: DevelopersDesigners },
{ name: "4 Endless tools", frames: ENDLESS_TOOLS_FRAMES, component: EndlessTools },
{ name: "5 Suddenly", frames: SUDDENLY_FRAMES, component: Suddenly },
{ name: "6 Building feels harder", frames: BUILDING_HARDER_FRAMES, component: BuildingHarder },
{ name: "7 But what if you could", frames: WHAT_IF_SKIP_FRAMES, component: WhatIfSkip },
{ name: "8 Prompt box", frames: PROMPT_BOX_FRAMES, component: PromptBox },
{ name: "9 Burst into sites", frames: SITE_BURST_FRAMES, component: SiteBurst },
{ name: "10 Your Vision", frames: VISION_SITE_FRAMES, component: VisionSite },
{ name: "11 Refine it Launch it", frames: REFINE_LAUNCH_FRAMES, component: RefineLaunch },
{ name: "12 Finally in action", frames: OUTRO_FRAMES, component: Outro },
];
export const IDEA_FRAMES = SECTIONS.reduce((sum, s) => sum + s.frames, 0);
export const IdeaPromo: React.FC = () => {
let from = 0;
return (
<AbsoluteFill style={{ backgroundColor: "#fff" }}>
{SECTIONS.map(({ name, frames, component: Section }) => {
const start = from;
from += frames;
return (
<Sequence key={name} name={name} from={start} durationInFrames={frames}>
<Section />
</Sequence>
);
})}
{/* The reference's own soundtrack, extracted from it unchanged; it starts on frame 0
and runs the full length, so the cuts land on the same beats. */}
<Html5Audio src={staticFile("idea-promo/audio/soundtrack.m4a")} />
</AbsoluteFill>
);
};Plus 17 files it imports. Copy them with the same folder layout:
›engine/src/idea-promo/BuildingHarder.tsx
engine/src/idea-promo/BuildingHarder.tsx import React from "react"; import { AbsoluteFill, Img, staticFile, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { MotionBlur } from "./MotionBlur"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 6 (reference frames 173-232): a web of portfolio and landing-page cards linked // by thin curves rises into view while the camera pulls back. The cards arrive washed // violet and warm up to their own colours; "building feels harder" types in at the // centre, then swaps to "than imagining" as a guide grid appears. The camera drifts, // then whips left into section 7. // // Photos (Unsplash licence), processed into public/idea-promo/cards/: portrait // 1757744705465-ea08b0ddc38a, avatars 1733231291455-3c4de1c24e20 and // 1623366302587-b38b1ddaefd9, meeting 1749849504865-3c549edc3182, gown // 1623580674393-edf6eb7090f8, laptop 1629131726692-1accd0c53ce0. Logos from svgl.app. export const BUILDING_HARDER_FRAMES = 60; const FIRST = 173; // Layout coordinates are where things sit at reference frame 220. The camera scales // about the frame centre (zoom = 1 + k) and pans sideways, both measured by tracking // the cards against frame 220. const k = keys([ [173, 0.32], [175, 0.27], [177, 0.19], [179, 0.145], [181, 0.118], [183, 0.1], [185, 0.088], [189, 0.061], [193, 0.037], [197, 0.025], [201, 0.014], [205, 0.006], [209, 0], ]); const pan = keys([ [185, 7], [189, 6], [197, 5], [205, 5.4], [209, 6], [213, 6], [217, 4], [220, 0], [221, -2], [223, -7], [225, -15], [227, -26], [229, -40], [230, -52], [231, -68], [232, -88], ]); const INK = "#18141c"; const SHADOW = "0 10px 24px rgba(60,20,90,0.16), 0 2px 6px rgba(60,20,90,0.08)"; const img = (f: string) => staticFile(`idea-promo/${f}`); // The violet wash every card arrives under, gone by frame 197. const washAt = (frame: number, at: number) => keys([[at, 0.85], [at + 4, 0.7], [197, 0]])(frame); type Card = { at: number; // frame it appears x: number; // centre y: number; w: number; h: number; rot: number; radius?: number; bare?: boolean; // no card chrome (just the content) render: () => React.ReactNode; }; const Serif: React.CSSProperties = { fontFamily: "Georgia, 'Times New Roman', serif" }; const CARDS: Card[] = [ { at: 174, x: 175, y: 600, w: 372, h: 172, rot: -3, render: () => ( <div style={{ position: "absolute", inset: 0, background: "#f7f5f9", padding: "26px 22px", fontFamily: INTER }}> <div style={{ position: "absolute", right: 26, top: 20, display: "flex", alignItems: "center", gap: 8 }}> <div style={{ display: "flex" }}> {["avatar-man.png", "avatar-man2.png", "avatar-man3.png"].map((a, i) => ( <Img key={a} src={img(`cards/${a}`)} style={{ width: 24, height: 24, borderRadius: 12, marginLeft: i ? -7 : 0, border: "1.5px solid #f7f5f9" }} /> ))} </div> <div style={{ fontSize: 9.5, lineHeight: 1.25, color: "#3a3540", fontWeight: 500 }}> <span style={{ color: "#e05a9a" }}>★</span> Trusted by <br /> 100k+ Happy Customers </div> </div> <div style={{ position: "absolute", left: 18, top: 58, fontSize: 66, fontWeight: 600, letterSpacing: "-0.05em", color: "#5c5763", lineHeight: 1, }} > $200M+ </div> <div style={{ position: "absolute", left: 24, top: 132, fontSize: 10.5, lineHeight: 1.35, color: "#77727c" }}> We've helped brands generate over $200M+ in revenue <br /> through data-driven campaigns </div> </div> ), }, { at: 175, x: 848, y: 551, w: 246, h: 136, rot: -3, render: () => ( <> <Img src={img("cards/gown.jpg")} style={{ position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: "cover", filter: "grayscale(1) contrast(1.1)" }} /> <div style={{ position: "absolute", inset: 0, background: "rgba(150,80,220,0.55)" }} /> <div style={{ ...Serif, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 52, color: "rgba(255,235,250,0.75)", letterSpacing: "0.02em", paddingTop: 6, }} > natalia </div> </> ), }, { at: 179, x: 208, y: 215, w: 280, h: 152, rot: -4, radius: 9, render: () => ( <> <Img src={img("cards/meeting.jpg")} style={{ position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: "cover" }} /> <div style={{ position: "absolute", inset: 0, background: "linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0) 40%, rgba(0,0,0,0.45))" }} /> <div style={{ position: "absolute", left: 14, top: 12, color: "#fff", fontFamily: INTER, fontWeight: 600, fontSize: 11 }}> brandigo. </div> <div style={{ position: "absolute", right: 12, top: 12, width: 12, display: "flex", flexDirection: "column", gap: 2.5 }}> {[0, 1, 2].map((i) => ( <div key={i} style={{ height: 1.5, background: "#fff" }} /> ))} </div> <div style={{ position: "absolute", left: 14, top: 36, color: "#fff", fontFamily: INTER, fontSize: 6.5 }}>[Award-Winning]</div> <div style={{ position: "absolute", left: 14, top: 96, color: "#fff", fontFamily: INTER, fontSize: 6 }}>(01)</div> <div style={{ ...Serif, position: "absolute", left: 14, bottom: 10, color: "#fff", fontSize: 17, lineHeight: 1.05 }}> Built for Brands <br /> Who → Want to Win </div> </> ), }, { at: 179, x: 548, y: 76, w: 292, h: 150, rot: 1.5, radius: 10, render: () => ( <div style={{ position: "absolute", inset: 0, background: "#f3f2f4" }}> <div style={{ ...Serif, position: "absolute", left: 0, right: 0, top: 34, textAlign: "center", fontSize: 56, color: "#bdb8c0", transform: "scaleX(0.74)", whiteSpace: "nowrap", }} > Michael Jones </div> <Img src={img("cards/portrait.png")} style={{ position: "absolute", left: "50%", bottom: 0, width: 150, transform: "translateX(-50%)" }} /> </div> ), }, { at: 180, x: 935, y: 172, w: 182, h: 128, rot: -5, radius: 12, render: () => ( <div style={{ position: "absolute", inset: 0, background: "#fff", display: "flex", alignItems: "center", justifyContent: "center" }}> <Img src={img("cards/laptop-violet.jpg")} style={{ width: 150, mixBlendMode: "multiply" }} /> </div> ), }, { at: 180, x: 1205, y: 325, w: 250, h: 175, rot: -3, radius: 8, render: () => ( <div style={{ position: "absolute", inset: 0, background: "#fbfafc", fontFamily: INTER, padding: "16px 18px", color: "#1d1a22" }}> <div style={{ display: "flex", alignItems: "center", gap: 5, fontSize: 9.5, fontWeight: 700 }}> <Img src={img("logos/framer.svg")} style={{ width: 7 }} /> Framer <div style={{ flex: 1 }} /> <span style={{ fontSize: 6, fontWeight: 500, color: "#6b6670" }}>Product ▾</span> <span style={{ fontSize: 6, fontWeight: 500, color: "#6b6670" }}>Resources ▾</span> </div> <div style={{ marginTop: 18, fontSize: 21, fontWeight: 700, letterSpacing: "-0.04em", lineHeight: 1.02 }}> Build better <br /> sites, faster. </div> <div style={{ marginTop: 8, fontSize: 8, color: "#6b6670", lineHeight: 1.3 }}> The website builder for <br /> modern products. </div> <div style={{ marginTop: 10, display: "flex", gap: 8, alignItems: "center", fontSize: 6.5 }}> <div style={{ background: "#1d1a22", color: "#fff", padding: "4px 7px", borderRadius: 4 }}>Start for free</div> <span style={{ color: "#6b6670" }}>Start with AI</span> </div> </div> ), }, { at: 181, x: 1212, y: 660, w: 72, h: 84, rot: -6, radius: 10, render: () => ( <div style={{ position: "absolute", inset: 0, background: "#fbfafc", display: "flex", alignItems: "center", justifyContent: "center" }}> <Img src={img("logos/figma.svg")} style={{ width: 34 }} /> </div> ), }, ]; // Thin links between the cards, in layout coordinates. const LINES: Array<{ at: number; d: string }> = [ { at: 176, d: "M 238 300 C 220 360, 150 420, 118 515" }, { at: 178, d: "M 357 555 C 430 515, 560 610, 728 604" }, { at: 180, d: "M 255 133 C 285 100, 340 95, 403 92" }, { at: 181, d: "M 695 55 C 760 50, 790 190, 846 196" }, { at: 182, d: "M 1028 148 C 1080 140, 1076 210, 1076 290 C 1076 330, 1082 345, 1096 352" }, { at: 182, d: "M 972 585 C 1050 590, 1130 612, 1180 640" }, { at: 183, d: "M 1158 413 C 1138 455, 1118 520, 1132 600" }, ]; // "building feels harder": laid out centred, each word fading up in turn. const PHRASE1: Array<{ text: string; at: number }> = [ { text: "building", at: 176.5 }, { text: "feels", at: 182.5 }, { text: "harder", at: 188.5 }, ]; const WHIP = 222; const SWAP = 207; // text swaps to "than imagining" and the grid appears const GRID_X = [377, 892]; const GRID_Y = [297, 412]; const Scene: React.FC<{ frame: number }> = ({ frame }) => { const s = 1 + k(frame); const p = pan(frame); const place = (x: number, y: number) => ({ x: (x - 640) * s + 640 + p, y: (y - 360) * s + 360 }); const origin = place(0, 0); const world: React.CSSProperties = { position: "absolute", left: 0, top: 0, width: 1280, height: 720, transformOrigin: "0 0", transform: `translate(${origin.x}px, ${origin.y}px) scale(${s})`, }; return ( <AbsoluteFill> <WhiteBase /> <div style={world}> {frame >= SWAP ? ( <svg width={1280} height={720} style={{ position: "absolute", left: 0, top: 0, overflow: "visible" }}> {GRID_X.map((x) => ( <line key={`x${x}`} x1={x} y1={-400} x2={x} y2={1100} stroke="rgba(28,24,32,0.13)" strokeWidth={1.2} /> ))} {GRID_Y.map((y) => ( <line key={`y${y}`} x1={-400} y1={y} x2={1700} y2={y} stroke="rgba(28,24,32,0.13)" strokeWidth={1.2} /> ))} {GRID_X.flatMap((x) => GRID_Y.map((y) => ( <g key={`${x},${y}`}> <circle cx={x} cy={y} r={11} fill="rgba(235,232,238,0.9)" stroke="rgba(28,24,32,0.3)" strokeWidth={1.2} /> <circle cx={x} cy={y} r={5.5} fill="rgba(28,24,32,0.3)" /> </g> )), )} </svg> ) : null} <svg width={1280} height={720} style={{ position: "absolute", left: 0, top: 0, overflow: "visible" }}> {LINES.map((l, i) => ( <path key={i} d={l.d} fill="none" stroke={`rgba(28,24,32,${0.75 * keys([[l.at, 0], [l.at + 2, 1]])(frame)})`} strokeWidth={1.3} /> ))} </svg> {CARDS.map((c, i) => { const t = keys([[c.at - 0.5, 0], [c.at + 2, 1]])(frame); if (t <= 0) return null; const rise = keys([[c.at, 70], [c.at + 3, 22], [c.at + 7, 0]])(frame); const wash = washAt(frame, c.at); return ( <div key={i} style={{ position: "absolute", left: c.x - c.w / 2, top: c.y - c.h / 2 + rise, width: c.w, height: c.h, transform: `rotate(${c.rot}deg)`, borderRadius: c.radius ?? 10, overflow: "hidden", boxShadow: c.bare ? undefined : SHADOW, opacity: t, }} > {c.render()} <div style={{ position: "absolute", inset: 0, background: `rgba(150,70,235,${wash})` }} /> </div> ); })} <div style={{ position: "absolute", left: 0, width: 1280, top: 360 - 40, height: 80, display: "flex", justifyContent: "center", alignItems: "center", fontFamily: INTER, fontWeight: 500, color: INK, lineHeight: 1, whiteSpace: "pre", }} > {frame < SWAP ? ( <div style={{ fontSize: 61, letterSpacing: "-0.06em", display: "flex", gap: 14, marginTop: -12 }}> {PHRASE1.map((w) => ( <span key={w.text} style={{ opacity: keys([[w.at, 0], [w.at + 0.5, 0.35], [w.at + 2.5, 1]])(frame) }}> {w.text} </span> ))} </div> ) : ( <div style={{ fontSize: 80, fontWeight: 440, letterSpacing: "-0.055em" }}>than imagining</div> )} </div> </div> <Overlay /> </AbsoluteFill> ); }; export const BuildingHarder: React.FC = () => { const frame = useCurrentFrame(); const ready = useInter(); if (!ready) return null; // The reference smears the closing whip with motion blur (only there). if (frame + FIRST >= WHIP) return <MotionBlur shutter={0.3} render={(f) => <Scene frame={f + FIRST} />} />; return <Scene frame={frame + FIRST} />; };›engine/src/idea-promo/fonts.ts
engine/src/idea-promo/fonts.ts import { useEffect, useState } from "react"; import { cancelRender, continueRender, delayRender, staticFile } from "remotion"; // Inter (variable weight + optical size) stands in for the reference's grotesk. export const INTER = "IdeaInter"; let loading: Promise<void> | null = null; const load = () => { loading ??= new FontFace(INTER, `url(${staticFile("product-tour/fonts/inter-latin-opsz-normal.woff2")}) format("woff2")`, { weight: "100 900", }) .load() .then((font) => void document.fonts.add(font)); return loading; }; // False until Inter is in, so nothing is drawn (or measured) in a fallback font. export const useInter = () => { const [ready, setReady] = useState(false); const [handle] = useState(() => delayRender("Inter")); useEffect(() => { load() .then(() => { setReady(true); continueRender(handle); }) .catch((err) => cancelRender(err)); }, [handle]); return ready; };›engine/src/idea-promo/MotionBlur.tsx
engine/src/idea-promo/MotionBlur.tsx import React from "react"; import { AbsoluteFill, useCurrentFrame } from "remotion"; // Camera-style motion blur: draws the scene at several sub-frame times and averages // them (layer i at 1/(i+1) opacity is an exact mean). Each sample must paint an opaque // background. 180 degree shutter, centred on the frame. export const MotionBlur: React.FC<{ render: (frame: number) => React.ReactNode; samples?: number; shutter?: number; }> = ({ render, samples = 12, shutter = 0.5 }) => { const frame = useCurrentFrame(); return ( <AbsoluteFill> {Array.from({ length: samples }, (_, i) => ( <AbsoluteFill key={i} style={{ opacity: 1 / (i + 1) }}> {render(frame + (i / (samples - 1) - 0.5) * shutter)} </AbsoluteFill> ))} </AbsoluteFill> ); };›engine/src/idea-promo/Overlay.tsx
engine/src/idea-promo/Overlay.tsx import React from "react"; import { AbsoluteFill, Img, staticFile } from "remotion"; // How the reference is really composited: everything sits on white, and one fixed // violet layer of varying strength lies over the whole frame (that is what turns a // black icon on the right dark plum, and greys out a green one in the lower left). // overlay.png is that layer, recovered from the reference: over white it reproduces // background.png exactly, and over the solid near-black "Idea" letters it reproduces // their gradient. Draw <WhiteBase /> first, the content, then <Overlay /> on top. export const WhiteBase: React.FC = () => <AbsoluteFill style={{ backgroundColor: "#fff" }} />; export const Overlay: React.FC = () => ( <AbsoluteFill style={{ pointerEvents: "none" }}> <Img src={staticFile("idea-promo/overlay.png")} style={{ width: "100%", height: "100%" }} /> </AbsoluteFill> );›engine/src/idea-promo/track.ts
engine/src/idea-promo/track.ts // Keyframes measured from the reference, as [frame, value] pairs, read back at any // (fractional) frame so sub-frame motion-blur samples land between them. Holds the // end values outside the measured range. export const keys = (points: ReadonlyArray<readonly [number, number]>) => (frame: number): number => { if (frame <= points[0][0]) return points[0][1]; for (let i = 1; i < points.length; i++) { const [f1, v1] = points[i]; if (frame <= f1) { const [f0, v0] = points[i - 1]; return v0 + ((v1 - v0) * (frame - f0)) / (f1 - f0); } } return points[points.length - 1][1]; };›engine/src/idea-promo/DevelopersDesigners.tsx
engine/src/idea-promo/DevelopersDesigners.tsx import React from "react"; import { AbsoluteFill, Img, staticFile, useCurrentFrame } from "remotion"; import { Background } from "./Background"; import { INTER, useInter } from "./fonts"; import { keys } from "./track"; // Section 3 (reference frames 54-109): still carried right by the whip out of section 2, // the camera eases to a slow drift over a scattered layout: "Developers a Designers", // product photos on grey cards (some tinted violet), faint symbols and dot grids. Each // piece pops in on its own frame; the layout itself never moves, only the camera. It // ends by zooming in faster and faster, hard-cutting to section 4. // // Photos (Unsplash licence), processed into public/idea-promo/devices/: laptop // 1629131726692-1accd0c53ce0, mouse 1707592691247-5c3a1c7ba0e3, power bank // 1706275399494-fb26bbc5da63, notebook 1611079830811-865ff4428d17, keyboard // 1654426542353-ba54b8f1752b. Their backdrops are levelled to the reference's card greys // and drawn with multiply, so a card over the violet reads greyed-violet like the reference. export const DEVELOPERS_DESIGNERS_FRAMES = 56; const FIRST = 54; // Layout coordinates are where things sit on screen at reference frame 90; the camera // pan is the offset from there (measured from the right edge of "Designers"). const pan = keys([ [54, -190], [55, -160], [56, -142], [57, -130], [58, -119], [59, -109], [60, -101], [61, -93], [62, -86], [63, -80], [64, -74], [65, -68], [66, -63], [67, -58], [68, -54], [69, -49], [70, -45], [71, -42], [72, -38], [73, -35], [74, -32], [75, -29], [76, -26], [77, -24], [78, -21], [79, -19], [80, -17], [81, -14], [82, -12], [83, -10], [84, -9], [85, -7], [86, -6], [87, -4], [88, -3], [89, -2], [90, 0], [91, 1], [92, 2], [93, 3], [94, 4], ]); // The closing push-in, about a point left of centre. const zoom = keys([ [94, 1], [95, 1.005], [96, 1.01], [97, 1.015], [98, 1.02], [99, 1.03], [100, 1.04], [101, 1.05], [102, 1.06], [103, 1.07], [104, 1.09], [105, 1.105], [106, 1.13], [107, 1.155], [108, 1.195], [109, 1.243], ]); const ZOOM_X = 602; const ZOOM_Y = 360; const INK = "28,24,32"; type Item = { at: number; // reference frame it pops in on x: number; y: number; render: () => React.ReactNode; // Pieces multiply onto the backdrop (each placed wrapper is its own blend group); // the solid pink tab is the one drawn normally. normal?: boolean; fade?: boolean; }; const Card: React.FC<{ src: string; size: number; opacity?: number }> = ({ src, size, opacity = 1 }) => ( <Img src={staticFile(`idea-promo/devices/${src}`)} style={{ width: size, height: size, display: "block", opacity }} /> ); // Plain grey card for the tinted objects that sit in front of one. const Plate: React.FC<{ size: number; shade: number }> = ({ size, shade }) => ( <div style={{ width: size, height: size, background: `rgb(${shade},${shade},${shade})` }} /> ); const Word: React.FC<{ text: string; size?: number }> = ({ text, size = 59 }) => ( <div style={{ fontFamily: INTER, fontSize: size, fontWeight: 500, letterSpacing: "-0.06em", lineHeight: 1, color: `rgb(${INK})`, whiteSpace: "pre", }} > {text} </div> ); const Symbol: React.FC<{ char: string; alpha: number }> = ({ char, alpha }) => ( <div style={{ fontFamily: INTER, fontSize: 46, fontWeight: 300, lineHeight: 1, color: `rgba(20,16,28,${alpha})`, }} > {char} </div> ); const Dots: React.FC<{ cols: number; rows: number }> = ({ cols, rows }) => ( <div style={{ width: cols * 8.4, height: rows * 8.4, backgroundImage: "radial-gradient(circle, rgba(20,16,28,0.2) 1.1px, transparent 1.4px)", backgroundSize: "8.4px 8.4px", }} /> ); // Text is placed by its top-left at the line box; Inter's cap top sits ~0.2em below that. const textTop = (capTop: number, size = 59) => capTop - size * 0.2; const ITEMS: Item[] = [ { at: 54, x: 1128, y: 12, render: () => <Dots cols={7} rows={29} /> }, { at: 54, x: 55, y: 510, render: () => <Dots cols={7} rows={13} /> }, { at: 56, x: 222, y: -83, render: () => <Card src="laptop.png" size={243} /> }, { at: 57, x: 112, y: 4, render: () => <Symbol char="@" alpha={0.29} /> }, { at: 57, fade: true, x: 102, y: textTop(212), render: () => <Word text="Developers" /> }, { at: 57, fade: true, x: 510, y: textTop(205) - 11, render: () => <Word text="a" /> }, { at: 57, fade: true, x: 609, y: textTop(337), render: () => <Word text="Designers" /> }, { at: 58, x: 226, y: 424, render: () => <Card src="mouse-purple.png" size={121} /> }, { at: 58, x: 1136, y: 553, render: () => <Symbol char="@" alpha={0.08} /> }, { at: 59, x: 364, y: 456, render: () => <Symbol char="%" alpha={0.2} /> }, { at: 60, x: 476, y: 300, render: () => <Card src="powerbank.png" size={117} /> }, { at: 61, x: 653, y: 94, render: () => <Symbol char="$" alpha={0.29} /> }, { at: 61, x: 889, y: 542, render: () => <Symbol char="#" alpha={0.18} /> }, { at: 62, x: 735, y: 67, render: () => <Card src="mouse.png" size={217} /> }, { at: 62, x: 110, y: 450, render: () => <Symbol char="%" alpha={0.2} /> }, { at: 64, x: 714, y: 545, render: () => <Plate size={254} shade={232} />, }, { at: 64, x: 600, y: 505, render: () => ( <Img src={staticFile("idea-promo/devices/keyboard-purple.png")} style={{ width: 340, display: "block", transform: "rotate(28deg)", transformOrigin: "50% 50%" }} /> ), }, { at: 64, x: 886, y: 216, render: () => <Symbol char="^" alpha={0.33} /> }, { at: 66, x: 1068, y: 292, render: () => <Plate size={127} shade={236} /> }, { at: 66, x: 1092, y: 270, render: () => ( <Img src={staticFile("idea-promo/devices/notebook-purple.png")} style={{ width: 100, height: 125, display: "block", opacity: 0.9, transform: "rotate(30deg)" }} /> ), }, { at: 67, x: 1014, y: 452, render: () => <Symbol char="@" alpha={0.14} /> }, { at: 68, x: 227, y: 128, render: () => <Symbol char="#" alpha={0.36} /> }, { at: 69, x: -100, y: 153, normal: true, render: () => <div style={{ width: 153, height: 122, background: "#ea92f9" }} />, }, { at: 71, x: 109, y: 334, render: () => <Symbol char="$" alpha={0.29} /> }, { at: 72, x: 1018, y: 94, render: () => <Symbol char="$" alpha={0.29} /> }, { at: 76, x: 637, y: 456, render: () => <Symbol char="*" alpha={0.23} /> }, ]; const Scene: React.FC<{ frame: number }> = ({ frame }) => { const dx = pan(frame); const s = zoom(frame); return ( <AbsoluteFill> <Background /> {ITEMS.map((item, i) => { // Cards and symbols are fully in on their first frame; the words take about // two frames to fade up. const t = item.fade ? keys([[item.at - 0.5, 0], [item.at + 1, 1]])(frame) : frame >= item.at - 0.5 ? 1 : 0; if (t <= 0) return null; const x = (item.x + dx - ZOOM_X) * s + ZOOM_X; const y = (item.y - ZOOM_Y) * s + ZOOM_Y; return ( <div key={i} style={{ position: "absolute", left: 0, top: 0, transform: `translate(${x}px, ${y}px) scale(${s})`, transformOrigin: "0 0", opacity: t, mixBlendMode: item.normal ? "normal" : "multiply", }} > {item.render()} </div> ); })} </AbsoluteFill> ); }; export const DevelopersDesigners: React.FC = () => { const frame = useCurrentFrame(); const ready = useInter(); if (!ready) return null; return <Scene frame={frame + FIRST} />; };›engine/src/idea-promo/Background.tsx
engine/src/idea-promo/Background.tsx import React from "react"; import { AbsoluteFill, Img, staticFile } from "remotion"; // The reference's backdrop is one still colour field (white top, violet right, lavender // bottom-left) that never moves; this is its first frame, softened to drop the // compression blocks. export const Background: React.FC = () => ( <AbsoluteFill> <Img src={staticFile("idea-promo/background.png")} style={{ width: "100%", height: "100%" }} /> </AbsoluteFill> );›engine/src/idea-promo/EndlessTools.tsx
engine/src/idea-promo/EndlessTools.tsx import React from "react"; import { AbsoluteFill, Img, staticFile, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 4 (reference frames 110-147): "Endless tools" types in at the centre of a ring // of nine app icons that circles clockwise around it (icons stay upright), while the // camera pushes in: quickly at first, then gently, then faster into the hard cut to // section 5. Logos from svgl.app. The icons get their violet cast from the overlay. export const ENDLESS_TOOLS_FRAMES = 38; const FIRST = 110; // Camera push-in about the text centre, from the width of "Endless tools". const zoom = keys([ [110, 0.92], [111, 0.927], [112, 0.953], [113, 0.967], [114, 0.98], [115, 0.993], [116, 1.0], [118, 1.013], [120, 1.027], [122, 1.033], [124, 1.04], [126, 1.045], [128, 1.048], [130, 1.051], [132, 1.054], [134, 1.057], [136, 1.061], [138, 1.067], [140, 1.08], [141, 1.09], [142, 1.1], [143, 1.113], [144, 1.133], [145, 1.155], [146, 1.18], [147, 1.22], ]); const CENTER_X = 640; const CENTER_Y = 359; const RX = 310; const RY = 180; const SPIN = 3.83; // degrees per frame, clockwise const TILE = 128; const Tile: React.FC<{ color: string; children: React.ReactNode }> = ({ color, children }) => ( <div style={{ width: TILE, height: TILE, borderRadius: 24, background: color, display: "flex", alignItems: "center", justifyContent: "center", }} > {children} </div> ); const Logo: React.FC<{ file: string; width: number; height?: number }> = ({ file, width, height }) => ( <Img src={staticFile(`idea-promo/logos/${file}`)} style={{ width, height: height ?? "auto", display: "block" }} /> ); // A one-colour glyph cut from a logo file (used for the white marks on the app tiles). const Glyph: React.FC<{ file: string; width: number; height: number; color: string }> = ({ file, width, height, color }) => { const url = `url(${staticFile(`idea-promo/logos/${file}`)})`; return ( <div style={{ width, height, background: color, maskImage: url, WebkitMaskImage: url, maskSize: "contain", WebkitMaskSize: "contain", maskRepeat: "no-repeat", WebkitMaskRepeat: "no-repeat", maskPosition: "center", WebkitMaskPosition: "center", }} /> ); }; // Clockwise from the left of the ring; `phase` is each icon's angle at reference frame // 116 (0 = right, 90 = bottom), measured from the reference. const ICONS: Array<{ name: string; phase: number; render: () => React.ReactNode }> = [ { name: "Gmail", phase: 201.5, render: () => <Logo file="gmail.svg" width={80} /> }, { name: "Figma", phase: 244.5, render: () => ( <Tile color="#020202"> <Logo file="figma.svg" width={57} height={84} /> </Tile> ), }, { name: "ChatGPT", phase: 285, render: () => <Logo file="openai.svg" width={172} /> }, { name: "Copilot", phase: 319, render: () => <Logo file="microsoft-copilot.svg" width={72} /> }, { name: "Gemini", phase: 359.5, render: () => <Logo file="gemini.svg" width={68} /> }, { name: "Cursor", phase: 402.5, render: () => ( <Tile color="#1c1b20"> <Logo file="cursor_dark.svg" width={70} /> </Tile> ), }, { name: "Firebase", phase: 446, render: () => <Logo file="firebase.svg" width={96} /> }, { name: "WhatsApp", phase: 482, render: () => ( <Tile color="#3ff055"> <Glyph file="whatsapp-icon.svg" width={86} height={86} color="#fff" /> </Tile> ), }, { name: "Webflow", phase: 518, render: () => ( <Tile color="#1b6aeb"> <Glyph file="webflow.svg" width={86} height={54} color="#fff" /> </Tile> ), }, ]; // "tools" types in two frames after "Endless", fading grey to ink. const toolsIn = keys([ [111.5, 0], [112, 0.35], [113.5, 1], ]); const TEXT_SIZE = 65; const Scene: React.FC<{ frame: number }> = ({ frame }) => { const s = zoom(frame); const place = (x: number, y: number) => ({ x: (x - CENTER_X) * s + CENTER_X, y: (y - CENTER_Y) * s + CENTER_Y }); return ( <AbsoluteFill> <WhiteBase /> {ICONS.map(({ name, phase, render }) => { const angle = ((phase + SPIN * (frame - 116)) * Math.PI) / 180; const p = place(CENTER_X + RX * Math.cos(angle), CENTER_Y + RY * Math.sin(angle)); return ( <div key={name} style={{ position: "absolute", left: p.x, top: p.y, transform: `translate(-50%, -50%) scale(${s})`, }} > {render()} </div> ); })} <div style={{ position: "absolute", left: 0, width: 1280, top: CENTER_Y - TEXT_SIZE / 2, height: TEXT_SIZE, display: "flex", justifyContent: "center", alignItems: "center", fontFamily: INTER, fontSize: TEXT_SIZE, fontWeight: 500, letterSpacing: "-0.065em", lineHeight: 1, color: "#18141c", whiteSpace: "pre", transform: `scale(${s})`, transformOrigin: `${CENTER_X}px 50%`, }} > <span>Endless </span> <span style={{ opacity: toolsIn(frame) }}>tools</span> </div> <Overlay /> </AbsoluteFill> ); }; export const EndlessTools: React.FC = () => { const frame = useCurrentFrame(); const ready = useInter(); if (!ready) return null; return <Scene frame={frame + FIRST} />; };›engine/src/idea-promo/NowWhat.tsx
engine/src/idea-promo/NowWhat.tsx import React from "react"; import { AbsoluteFill, useCurrentFrame } from "remotion"; import { Background } from "./Background"; import { INTER, useInter } from "./fonts"; import { keys } from "./track"; // Section 2 (reference frames 33-53): carried down by the whip out of "Idea", an outlined // input box settles in the centre, its arrow swings from up-right to right and it types // "Now What?". Five code snippets float around it and swap for a new set every five // frames, then everything accelerates off to the right into section 3. export const NOW_WHAT_FRAMES = 21; const FIRST = 33; // reference frame this section starts on; keys below use reference frames // The whole layout moves as one: down into place, then off to the right. const groupY = keys([ [32.5, -122], [33, -97], [34, -59.5], [35, -43.5], [36, -32.5], [37, -24], [38, -18], [39, -13], [40, -9], [41, -6], [42, -4], [43, -2], [44, -1], [45, 0], ]); const groupX = keys([ [44, 0], [45, 1.5], [46, 4], [47, 8], [48, 13], [49, 20.5], [50, 30], [51, 43], [52, 60.5], [53, 87], [54, 125], ]); const arrowAngle = keys([ [33, -45], [34, -30], [35, -18], [36, -14], [37, -7], [38, -3], [39, -1], [40, 0], ]); // Typed a word at a time, each word fading from grey to ink over two frames. const TYPED: Array<{ text: string; start: number }> = [ { text: "Now", start: 34.6 }, { text: "What?", start: 36.6 }, ]; // Settled box, in frame pixels. const BOX = { left: 416, top: 315, width: 446, height: 88, cell: 84 }; const INK = "28,24,32"; // Snippet slots: centre point and ink strength. The last one also fades out along its length. const SLOTS: Array<{ x: number; y: number; opacity: number; fade?: boolean }> = [ { x: 365, y: 220, opacity: 1 }, { x: 995, y: 232, opacity: 0.9 }, { x: 185, y: 403, opacity: 0.72 }, { x: 539, y: 587, opacity: 0.66 }, { x: 987, y: 605, opacity: 0.62, fade: true }, ]; const SETS: Array<{ from: number; lines: string[] }> = [ { from: 33, lines: [ 'const idea = "Something amazing";', 'import { creativity } from "mind";', 'const idea = "Think Big";', "const future = await create();", "function buildFuture() {", ], }, { from: 39, lines: [ 'let vision = "Your imagination";', 'defineProject("My Next Big Idea");', "createVision();", "designInterface();", 'const concept = "Your Idea";', ], }, { from: 44, lines: ["createProject(idea);", 'setVision("Make It Real");', "buildConcept();", "generateWebsite();", "transform(concept);"], }, { from: 49, lines: ["initializeWorkspace();", "connectIdeas();", "designInterface();", "refineExperience();", "createExperience();"], }, ]; const CODE_SIZE = 20; const linesAt = (frame: number) => { const whole = Math.round(frame); return [...SETS].reverse().find((s) => whole >= s.from)!.lines; }; const Arrow: React.FC<{ angle: number }> = ({ angle }) => ( <svg width={44} height={44} viewBox="-22 -22 44 44" style={{ transform: `rotate(${angle}deg)`, overflow: "visible" }} > <g fill="none" stroke={`rgb(${INK})`} strokeWidth={2.8} strokeLinecap="round" strokeLinejoin="round"> <path d="M -17 0 H 17" /> <path d="M 2 -15 L 17 0 L 2 15" /> </g> </svg> ); const Snippet: React.FC<{ text: string; slot: (typeof SLOTS)[number] }> = ({ text, slot }) => ( <div style={{ position: "absolute", left: slot.x - 400, top: slot.y - CODE_SIZE / 2, width: 800, height: CODE_SIZE, display: "flex", justifyContent: "center", alignItems: "center", }} > <span style={{ fontFamily: INTER, fontSize: CODE_SIZE, fontWeight: 450, letterSpacing: "-0.06em", lineHeight: 1, whiteSpace: "pre", color: `rgba(${INK},${slot.opacity})`, ...(slot.fade ? { maskImage: "linear-gradient(90deg, #000 0%, rgba(0,0,0,0.2) 100%)", WebkitMaskImage: "linear-gradient(90deg, #000 0%, rgba(0,0,0,0.2) 100%)", } : {}), }} > {text} </span> </div> ); const Scene: React.FC<{ frame: number }> = ({ frame }) => { const lines = linesAt(frame); return ( <AbsoluteFill> <Background /> <AbsoluteFill style={{ transform: `translate(${groupX(frame)}px, ${groupY(frame)}px)` }}> {SLOTS.map((slot, i) => ( <Snippet key={i} text={lines[i]} slot={slot} /> ))} <div style={{ position: "absolute", left: BOX.left, top: BOX.top, width: BOX.width, height: BOX.height, boxSizing: "border-box", border: `1.5px solid rgba(${INK},0.8)`, display: "flex", }} > <div style={{ width: BOX.cell, height: "100%", boxSizing: "border-box", borderRight: `1.5px solid rgba(${INK},0.8)`, display: "flex", alignItems: "center", justifyContent: "center", }} > <Arrow angle={arrowAngle(frame)} /> </div> <div style={{ flex: 1, display: "flex", alignItems: "center", paddingLeft: 48, paddingTop: 3, gap: 13, fontFamily: INTER, fontSize: 62, fontWeight: 480, letterSpacing: "-0.085em", lineHeight: 1, color: `rgb(${INK})`, }} > {TYPED.map(({ text, start }) => { const t = keys([ [start, 0], [start + 0.3, 0.4], [start + 2, 1], ])(frame); return ( <span key={text} style={{ opacity: t }}> {text} </span> ); })} </div> </div> </AbsoluteFill> </AbsoluteFill> ); }; export const NowWhat: React.FC = () => { const frame = useCurrentFrame(); const ready = useInter(); if (!ready) return null; // Unlike section 1, the reference draws this section without motion blur. return <Scene frame={frame + FIRST} />; };›engine/src/idea-promo/Outro.tsx
engine/src/idea-promo/Outro.tsx import React from "react"; import { AbsoluteFill, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { MotionBlur } from "./MotionBlur"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 12 (reference frames 462-551): "Your imagination" fades in word by word as the // camera pulls back from it, holds, and whips off to the right; then "finally in action" // slides in from the left inside four small corner marks, types in, and holds to the end. export const OUTRO_FRAMES = 90; const FIRST = 462; const SECOND = 502; const INK = "#1a1520"; const SIZE = 62; // Line 1: scale about its centre (from its measured height) and its drift right. const scale1 = keys([ [464, 1.75], [466, 1.58], [468, 1.45], [470, 1.32], [472, 1.22], [474, 1.15], [476, 1.09], [480, 1.03], [486, 1.005], [490, 1], ]); const x1 = keys([ [490, 4], [494, 9], [496, 17], [498, 35], [500, 54], [501.5, 90], ]); const LINE1: Array<{ text: string; at: number; settle: number }> = [ { text: "Your", at: 464.5, settle: 467.5 }, { text: "imagination", at: 468.5, settle: 474 }, ]; // Line 2: slides in from the left with its corner marks, typing as it goes. const x2 = keys([ [502, -100], [504, -80], [506, -58], [508, -42], [510, -30], [512, -21], [516, -9], [520, -2], [526, 0], ]); const LINE2: Array<{ text: string; at: number; settle: number }> = [ { text: "finally", at: 503, settle: 505.5 }, { text: "in", at: 505, settle: 507 }, { text: "action", at: 506.5, settle: 509 }, ]; const MARKS = [ [394, 294], [878, 294], [394, 424], [878, 424], ]; const Line: React.FC<{ frame: number; words: typeof LINE1 }> = ({ frame, words }) => ( <div style={{ position: "absolute", left: 0, width: 1280, top: 366 - SIZE / 2, height: SIZE, display: "flex", justifyContent: "center", alignItems: "center", gap: SIZE * 0.2, fontFamily: INTER, fontSize: SIZE, fontWeight: 500, letterSpacing: "-0.075em", lineHeight: 1, color: INK, whiteSpace: "pre", }} > {words.map((w) => { const t = keys([[w.at, 0], [w.at + 0.5, 0.35], [w.settle, 1]])(frame); return ( <span key={w.text} style={{ opacity: t, filter: `blur(${(1 - t) * 3}px)` }}> {w.text} </span> ); })} </div> ); const Scene: React.FC<{ frame: number }> = ({ frame }) => ( <AbsoluteFill> <WhiteBase /> {frame < SECOND - 0.5 ? ( <div style={{ position: "absolute", inset: 0, transform: `translateX(${x1(frame)}px) scale(${scale1(frame)})`, transformOrigin: "640px 366px", }} > <Line frame={frame} words={LINE1} /> </div> ) : ( <div style={{ position: "absolute", inset: 0, transform: `translateX(${x2(frame)}px)` }}> {MARKS.map(([x, y]) => ( <div key={`${x},${y}`} style={{ position: "absolute", left: x - 4, top: y - 4, width: 8, height: 8, background: "rgba(150,140,160,0.45)" }} /> ))} <Line frame={frame} words={LINE2} /> </div> )} <Overlay /> </AbsoluteFill> ); export const Outro: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; // The reference smears the fast moves (the pull-back, the whip and the slide-in). const fast = frame < 478 || (frame > 494 && frame < 514); if (fast) return <MotionBlur render={(f) => <Scene frame={f + FIRST} />} />; return <Scene frame={frame} />; };›engine/src/idea-promo/PromptBox.tsx
engine/src/idea-promo/PromptBox.tsx import React from "react"; import { AbsoluteFill, staticFile, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 8 (reference frames 280-307): an AI prompt box drops into place (still riding // the whip down out of section 7) while the prompt types itself in; the controls row // fills in as violet placeholder bars that resolve into chips, the model picker and the // send button, and the hand cursor settles on send and clicks. The red particle burst // that follows belongs to section 9, which reuses <PromptScene />. export const PROMPT_BOX_FRAMES = 28; const FIRST = 280; const INK = "#2b2230"; const MUTED = "#6e6475"; const PROMPT = [ "Create an AI-powered fitness tracking app that helps users", "monitor their daily workouts, track calories, set personal fitness goals,", "and get smart recommendations to improve their health and stay consistent", ]; // Top of the box: drops in fast, then keeps settling slowly (from the text's top edge). const boxTop = keys([ [280, 128], [281, 146], [282, 159], [283, 171], [284, 180], [285, 189], [286, 196], [287, 202], [288, 208], [289, 213], [290, 218], [291, 222], [292, 226], [293, 229], [294, 232], [295, 235], [296, 238], [297, 241], [298, 243], [299, 245], [300, 247], [301, 249], [302, 251], [303, 252], [304, 253], [305, 255], [306, 256], [307, 257], [308, 258], [309, 259], [312, 260], ]); // Characters typed so far (the last dozen fade in behind the cursor). const typed = keys([ [280, 28], [282, 45], [283, 58], [284, 68], [286, 90], [288, 112], [290, 132], [292, 150], [294, 168], [296, 185], [298, 198], [299.5, 205], [301, 230], ]); const TAIL = 12; // Hand cursor, in frame pixels. const cursorX = keys([ [280, 1020], [284, 995], [288, 972], [292, 960], [296, 958], ]); const cursorY = keys([ [280, 355], [284, 382], [288, 405], [292, 420], [296, 425], ]); const CLICK = 306; const BOX_LEFT = 271; const BOX_W = 736; const BOX_H = 187; // Lucide icons (ISC licence). const Icon: React.FC<{ d: string[]; size?: number; color?: string; stroke?: number }> = ({ d, size = 16, color = MUTED, stroke = 1.6 }) => ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth={stroke} strokeLinecap="round" strokeLinejoin="round"> {d.map((p, i) => ( <path key={i} d={p} /> ))} </svg> ); const ICONS = { plus: ["M12 8v8", "M8 12h8", "M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20z"], phone: ["M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z", "M12 18h.01"], monitor: ["M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z", "M8 21h8", "M12 17v4"], globe: ["M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20z", "M2 12h20", "M12 2a15.3 15.3 0 0 1 4 10a15.3 15.3 0 0 1-4 10a15.3 15.3 0 0 1-4-10a15.3 15.3 0 0 1 4-10z"], mic: ["M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z", "M19 10v2a7 7 0 0 1-14 0v-2", "M12 19v3"], arrow: ["M7 17L17 7", "M7 7h10v10"], chevron: ["M6 9l6 6l6-6"], }; // Lucide "pointer" hand (ISC licence). const Hand: React.FC<{ size: number }> = ({ size }) => ( <svg width={size} height={size} viewBox="0 0 24 24" fill="#fff" stroke={INK} strokeWidth={1.6} strokeLinecap="round" strokeLinejoin="round"> <path d="M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15V4a2 2 0 0 1 4 0v6a2 2 0 0 1 4 0v1a2 2 0 0 1 3 0z" /> </svg> ); // A control that first shows as a violet placeholder bar, then resolves into itself. const Slot: React.FC<{ frame: number; at: number; resolve: number; left: number; width: number; height?: number; children: React.ReactNode; background: string; }> = ({ frame, at, resolve, left, width, height = 35, children, background }) => { const appear = keys([[at - 0.5, 0], [at + 0.5, 1]])(frame); const real = keys([[resolve, 0], [resolve + 2, 1]])(frame); if (appear <= 0) return null; return ( <div style={{ position: "absolute", left, top: 147 - height / 2, width, height, opacity: appear }}> <div style={{ position: "absolute", inset: 0, borderRadius: height / 2, background: "#b452ee", opacity: 1 - real }} /> <div style={{ position: "absolute", inset: 0, borderRadius: height / 2, background, opacity: real, display: "flex", alignItems: "center", justifyContent: "center", gap: 7, }} > {children} </div> </div> ); }; const Chip: React.FC<{ icon: string[]; label: string; color?: string }> = ({ icon, label, color = INK }) => ( <> <Icon d={icon} size={15} color={MUTED} /> <span style={{ fontSize: 14.5, letterSpacing: "-0.05em", color, whiteSpace: "pre" }}>{label}</span> </> ); export const PromptCard: React.FC<{ frame: number }> = ({ frame }) => { const n = typed(frame); let remaining = 0; const lines = PROMPT.map((line) => { const start = remaining; remaining += line.length; return { line, start }; }); const pressed = keys([[CLICK - 0.5, 0], [CLICK, 1], [CLICK + 1.5, 0]])(frame); const top = boxTop(frame); return ( <> <div style={{ position: "absolute", left: BOX_LEFT, top, width: BOX_W, height: BOX_H, borderRadius: 22, background: "rgba(255,255,255,0.55)", border: "1.5px solid rgba(238,170,232,0.9)", boxShadow: "0 0 0 4px rgba(246,190,238,0.45), 0 0 18px 8px rgba(244,180,236,0.45), 0 10px 30px rgba(220,150,230,0.25)", fontFamily: INTER, boxSizing: "border-box", }} > <div style={{ position: "absolute", left: 31, top: 25, fontSize: 16.6, fontWeight: 450, lineHeight: "21.5px", letterSpacing: "-0.065em", color: INK }}> {lines.map(({ line, start }) => ( <div key={line} style={{ whiteSpace: "pre", height: 21.5 }}> {[...line].map((ch, i) => { const k = start + i; const o = Math.max(0, Math.min(1, (n - k) / TAIL)); return ( <span key={i} style={{ opacity: o }}> {ch} </span> ); })} </div> ))} </div> <div style={{ position: "absolute", left: 28, top: 138, opacity: keys([[280.5, 0], [282, 1]])(frame) }}> <Icon d={ICONS.plus} size={19} color="#9a90a0" /> </div> <Slot frame={frame} at={282} resolve={287} left={64} width={80} background="#dcc0f2"> <Chip icon={ICONS.phone} label="App" /> </Slot> <Slot frame={frame} at={283} resolve={287.5} left={153} width={81} background="#eee4f4"> <Chip icon={ICONS.monitor} label="Web" /> </Slot> <Slot frame={frame} at={284} resolve={288} left={244} width={113} background="#eee4f4"> <Chip icon={ICONS.globe} label="Web App" /> </Slot> <Slot frame={frame} at={285} resolve={288.5} left={406} width={182} height={31} background="#2a1530"> <div style={{ width: 17, height: 17, borderRadius: 4, background: "#e06b4f", display: "flex", alignItems: "center", justifyContent: "center", }} > <div style={{ width: 12, height: 12, background: "#fff", WebkitMaskImage: `url(${staticFile("idea-promo/logos/claude-ai-icon.svg")})`, maskImage: `url(${staticFile("idea-promo/logos/claude-ai-icon.svg")})`, WebkitMaskSize: "contain", maskSize: "contain", WebkitMaskRepeat: "no-repeat", maskRepeat: "no-repeat", }} /> </div> <span style={{ fontSize: 13.5, letterSpacing: "-0.05em", color: "#fff", whiteSpace: "pre" }}>Claude Feble 5.1 ( Low )</span> <Icon d={ICONS.chevron} size={13} color="#fff" stroke={2} /> </Slot> <div style={{ position: "absolute", left: 611, top: 138, opacity: keys([[288.5, 0], [290, 0.6]])(frame) }}> <Icon d={ICONS.mic} size={18} color="#b9b0bf" /> </div> <div style={{ position: "absolute", left: 650, top: 125, width: 44, height: 44, borderRadius: 22, background: pressed > 0 ? `rgb(${160 + 40 * pressed},${60 + 70 * pressed},${235})` : "#9a3df0", boxShadow: "0 6px 16px rgba(140,40,230,0.35)", display: "flex", alignItems: "center", justifyContent: "center", opacity: keys([[287.5, 0], [289, 1]])(frame), transform: `scale(${1 - 0.08 * pressed})`, }} > <Icon d={ICONS.arrow} size={20} color="#fff" stroke={2} /> </div> </div> <div style={{ position: "absolute", left: cursorX(frame) - 18, top: cursorY(frame) - 20, transform: `scale(${1 - 0.1 * pressed})`, }} > <Hand size={46} /> </div> </> ); }; export const PromptScene: React.FC<{ frame: number }> = ({ frame }) => ( <AbsoluteFill> <WhiteBase /> <PromptCard frame={frame} /> <Overlay /> </AbsoluteFill> ); export const PromptBox: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; return <PromptScene frame={frame} />; };›engine/src/idea-promo/RefineLaunch.tsx
engine/src/idea-promo/RefineLaunch.tsx import React from "react"; import { AbsoluteFill, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 11 (reference frames 417-461): back on white under the violet layer, the // camera settles out of a close zoom onto three device cards (a laptop showing an agency // site, a phone with a space-themed site, a tablet with a motion studio site) while // "Refine it Launch it" types in on a frosted chip between them; then everything // shrinks away, faster and faster. export const REFINE_LAUNCH_FRAMES = 45; const FIRST = 417; const zoom = keys([ [417, 1.35], [419, 1.24], [421, 1.16], [423, 1.1], [425, 1.06], [428, 1.03], [432, 1.01], [438, 1], [446, 0.995], [450, 0.985], [454, 0.965], [457, 0.94], [459, 0.915], [461, 0.88], ]); // Cards rise in from below as the zoom settles. const rise = keys([ [417, 130], [419, 80], [421, 46], [424, 20], [428, 6], [432, 0], ]); const WORDS: Array<{ text: string; at: number }> = [ { text: "Refine", at: 419.5 }, { text: "it", at: 423.5 }, { text: "Launch", at: 427.5 }, { text: "it", at: 433.5 }, ]; const card: React.CSSProperties = { position: "absolute", borderRadius: 12, overflow: "hidden", boxShadow: "0 18px 40px rgba(70,20,110,0.25)", fontFamily: INTER, }; const Laptop: React.FC = () => ( <div style={{ ...card, left: 204, top: 164, width: 332, height: 436, background: "linear-gradient(180deg, #8f4426 0%, #c97a52 28%, #ead7d0 52%, #cfc6d6 100%)" }}> <div style={{ position: "absolute", left: 18, top: 70, width: 300, height: 190, borderRadius: 8, background: "#f7f5f2", border: "5px solid #2b2830", transform: "rotate(-3deg)", overflow: "hidden", color: "#1d1a22", }} > <div style={{ display: "flex", justifyContent: "space-between", padding: "6px 8px", fontSize: 6, fontWeight: 600 }}> <span>◆ PixelRise</span> <span style={{ background: "#1d1a22", color: "#fff", padding: "1px 5px", borderRadius: 3 }}>Let's Talk</span> </div> <div style={{ position: "absolute", left: 10, top: 24, fontSize: 14, fontWeight: 800, lineHeight: 1.0, letterSpacing: "-0.04em" }}> BUILDING <br /> DIGITAL <br /> EXPERIENCES <br /> THAT STICK </div> <div style={{ position: "absolute", right: 14, top: 30, fontSize: 18, fontWeight: 800, color: "#e2531f" }}>132%</div> <div style={{ position: "absolute", left: 120, top: 50, width: 60, height: 70, borderRadius: 6, background: "linear-gradient(135deg, #ff8a5c, #d23a2a)", transform: "rotate(10deg)", }} /> <div style={{ position: "absolute", left: 6, bottom: 4, fontSize: 40, fontWeight: 900, letterSpacing: "0.08em", color: "transparent", WebkitTextStroke: "1.2px #c9c3cf" }}> PIXEL RISE </div> </div> <div style={{ position: "absolute", left: 0, right: 0, bottom: 0, height: 150, background: "linear-gradient(180deg, rgba(150,140,160,0) 0%, rgba(120,110,135,0.55) 100%)" }} /> </div> ); const Phone: React.FC = () => ( <div style={{ ...card, left: 564, top: 40, width: 182, height: 234, background: "linear-gradient(180deg, #1b2a8a 0%, #0f1d6e 60%, #172cb0 100%)", color: "#fff" }}> <div style={{ position: "absolute", left: 10, top: 8, fontSize: 5.5, opacity: 0.8 }}>EO Creations — Space for ideas</div> <div style={{ position: "absolute", left: 34, top: 56, width: 118, height: 118, borderRadius: 59, background: "radial-gradient(circle at 38% 32%, #d6e4ff 0%, #6f8fff 22%, #1e2fa8 60%, #0a1050 100%)", boxShadow: "0 0 30px rgba(120,150,255,0.6)", }} /> <div style={{ position: "absolute", left: 14, top: 100, fontSize: 22, fontWeight: 800, letterSpacing: "-0.03em" }}>EO</div> <div style={{ position: "absolute", left: 50, top: 104, fontSize: 13, fontWeight: 600 }}>Creations</div> <div style={{ position: "absolute", left: 12, bottom: 12, fontSize: 5.5, lineHeight: 1.4, opacity: 0.75, width: 120 }}> We design launch-ready products for teams that move fast. </div> </div> ); const Tablet: React.FC = () => ( <div style={{ ...card, left: 850, top: 316, width: 214, height: 284, background: "linear-gradient(180deg, #5a1f6e 0%, #7a2a7c 50%, #b05aa8 100%)", color: "#fff" }}> <div style={{ position: "absolute", left: 10, top: 30, width: 194, height: 120, borderRadius: 6, background: "linear-gradient(135deg, #ff6a3d 0%, #e8322f 55%, #b81e5a 100%)", overflow: "hidden", }} > <div style={{ position: "absolute", left: 8, top: 26, fontSize: 9, fontWeight: 800, lineHeight: 1.05 }}> VISUALIZE <br /> YOUR MIND <br /> IN MOTION </div> <div style={{ position: "absolute", right: 10, top: 18, width: 70, height: 70, borderRadius: 35, background: "radial-gradient(circle at 40% 35%, #ffd7c2, #ff7a4a 45%, #a3123a 100%)" }} /> </div> <div style={{ position: "absolute", left: 10, top: 162, right: 10, height: 40, borderRadius: 6, background: "rgba(255,255,255,0.12)" }} /> </div> ); export const RefineLaunch: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; const s = zoom(frame); const r = rise(frame); return ( <AbsoluteFill> <WhiteBase /> <AbsoluteFill style={{ transform: `scale(${s})`, transformOrigin: "640px 360px" }}> <div style={{ position: "absolute", inset: 0, transform: `translateY(${r}px)` }}> <Laptop /> <Phone /> <Tablet /> </div> <div style={{ position: "absolute", left: 400, top: 326, width: 480, height: 70, borderRadius: 16, background: "rgba(255,255,255,0.6)", boxShadow: "0 8px 30px rgba(120,60,160,0.12)", opacity: keys([[418.5, 0], [420.5, 1]])(frame), }} /> <div style={{ position: "absolute", left: 0, width: 1280, top: 326, height: 70, display: "flex", justifyContent: "center", alignItems: "center", gap: 10, fontFamily: INTER, fontSize: 56, fontWeight: 450, letterSpacing: "-0.07em", color: "#1c1622", whiteSpace: "pre", }} > {WORDS.map((w, i) => ( <span key={i} style={{ opacity: keys([[w.at, 0], [w.at + 0.5, 0.3], [w.at + 2.5, 1]])(frame) }}> {w.text} </span> ))} </div> </AbsoluteFill> <Overlay /> </AbsoluteFill> ); };›engine/src/idea-promo/SiteBurst.tsx
engine/src/idea-promo/SiteBurst.tsx import React from "react"; import { AbsoluteFill, Img, random, staticFile, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay } from "./Overlay"; import { PromptScene } from "./PromptBox"; import { keys } from "./track"; // Section 9 (reference frames 308-373): pressing send bursts a spray of circles out of // the button. Each circle is a window onto the first generated website, and they swell // and multiply until it fills the frame (the violet overlay lifts off as they do). Then // three more sites hard-cut by, each a translucent site card over a full-bleed backdrop // of its own artwork with a faint guide grid. // // Backdrops (Unsplash licence) in public/idea-promo/sites/: dunes 1603349823484-16e8823f73e6, // red fog 1699910406358-d6a555be83b4, swirl 1755167611525-6551c0266420, race car // 1788634190901-aca44efe915d. Brand names on the cards are made up. export const SITE_BURST_FRAMES = 66; const FIRST = 308; const SITES = [ { from: 308, render: (f: number) => <Snap frame={f} /> }, { from: 338, render: (f: number) => <Vanguard frame={f} /> }, { from: 348, render: (f: number) => <Equilibrium frame={f} /> }, { from: 360, render: (f: number) => <Swift frame={f} /> }, ]; // ---- the burst ------------------------------------------------------------------------ const ORIGIN = { x: 943, y: 402 }; // the send button const PARTICLES = Array.from({ length: 420 }, (_, i) => { const u = (k: string) => random(`burst-${k}-${i}`); const angle = u("a") * Math.PI * 2; return { t0: 308.5 + 10 * Math.pow(u("t"), 1.1), dx: Math.cos(angle), dy: Math.sin(angle), speed: 22 + 52 * u("s"), jx: (u("x") - 0.5) * 40, jy: (u("y") - 0.5) * 40, r0: 3 + 6 * u("r"), grow: 1.2 + 2.2 * u("g"), rmax: 9 + 24 * u("m"), }; }); // A front that sweeps out behind the spray and finishes the job: a disc ringed by big // lumpy circles, so its edge stays bubbly like the reference's. const front = (frame: number) => Math.max(0, 72 * (frame - 316.5)); const LUMPS = Array.from({ length: 70 }, (_, i) => ({ angle: (i / 70) * Math.PI * 2 + random(`lump-a-${i}`) * 0.08, reach: 0.9 + 0.2 * random(`lump-d-${i}`), size: 0.09 + 0.08 * random(`lump-r-${i}`), })); const BurstClip: React.FC<{ frame: number; id: string }> = ({ frame, id }) => ( <svg width={0} height={0} style={{ position: "absolute" }}> <defs> <clipPath id={id}> <circle cx={ORIGIN.x} cy={ORIGIN.y} r={front(frame) * 0.9} /> {front(frame) > 0 ? LUMPS.map((l, i) => { const R = front(frame); return ( <circle key={`l${i}`} cx={ORIGIN.x + Math.cos(l.angle) * R * l.reach} cy={ORIGIN.y + Math.sin(l.angle) * R * l.reach} r={Math.max(8, R * l.size)} /> ); }) : null} {PARTICLES.map((p, i) => { const t = frame - p.t0; if (t <= 0) return null; const travel = p.speed * t; const r = Math.min(p.rmax, p.r0 + p.grow * t); return <circle key={i} cx={ORIGIN.x + p.jx + p.dx * travel} cy={ORIGIN.y + p.jy + p.dy * travel} r={r} />; })} </clipPath> </defs> </svg> ); // ---- shared site pieces --------------------------------------------------------------- const GRID_X = [18, 268, 518, 768, 1018, 1268]; const GRID_Y = [8, 218, 430, 640]; const Backdrop: React.FC<{ file: string; filter?: string; zoom: number }> = ({ file, filter, zoom }) => ( <AbsoluteFill style={{ overflow: "hidden" }}> <Img src={staticFile(`idea-promo/sites/${file}`)} style={{ width: "100%", height: "100%", objectFit: "cover", filter, transform: `scale(${zoom})` }} /> <svg width={1280} height={720} style={{ position: "absolute", inset: 0 }}> {GRID_X.map((x) => ( <line key={`x${x}`} x1={x} y1={0} x2={x} y2={720} stroke="rgba(255,255,255,0.16)" strokeWidth={1.2} /> ))} {GRID_Y.map((y) => ( <line key={`y${y}`} x1={0} y1={y} x2={1280} y2={y} stroke="rgba(255,255,255,0.16)" strokeWidth={1.2} /> ))} </svg> </AbsoluteFill> ); const Card: React.FC<{ box: { left: number; top: number; width: number; height: number }; tint: string; border: string; zoom: number; children: React.ReactNode; }> = ({ box, tint, border, zoom, children }) => ( <div style={{ position: "absolute", left: box.left, top: box.top, width: box.width, height: box.height, borderRadius: 16, background: tint, border: `2px solid ${border}`, boxShadow: "0 20px 60px rgba(0,0,0,0.35)", overflow: "hidden", fontFamily: INTER, color: "#fff", transform: `scale(${zoom})`, transformOrigin: "640px 360px", }} > {children} </div> ); const slow = (from: number, frames: number) => keys([[from, 1], [from + frames, 1.025]]); // ---- the four sites ------------------------------------------------------------------- const Snap: React.FC<{ frame: number }> = ({ frame }) => { const z = slow(316, 22)(frame); return ( <AbsoluteFill> <Backdrop file="dunes.jpg" filter="saturate(1.4) hue-rotate(-12deg) brightness(1.3) contrast(0.9)" zoom={z} /> <AbsoluteFill style={{ background: "rgba(245,95,85,0.5)", mixBlendMode: "multiply" }} /> <Card box={{ left: 330, top: 148, width: 622, height: 427 }} tint="rgba(255,150,120,0.16)" border="rgba(255,215,200,0.55)" zoom={z}> <div style={{ position: "absolute", left: 12, top: 10, fontSize: 7, fontWeight: 700, letterSpacing: "0.1em", opacity: 0.85 }}>TOONHUB</div> <div style={{ position: "absolute", left: -40, right: -40, top: 70, textAlign: "center", fontSize: 172, fontWeight: 700, letterSpacing: "-0.03em", lineHeight: 1, color: "rgba(255,255,255,0.95)", whiteSpace: "nowrap", }} > SNAP </div> <div style={{ position: "absolute", left: 22, top: 278, fontSize: 12, fontWeight: 600, letterSpacing: "0.04em" }}>TOONHUB FIGURINES</div> <div style={{ position: "absolute", left: 22, top: 300, fontSize: 7, lineHeight: 1.45, opacity: 0.8, width: 170 }}> The details in every figure, sculpted fully by hand. The finish is a classic, the 3D craft is timeless. Made for collectors who want the little things right. </div> <div style={{ position: "absolute", left: 22, top: 350, display: "flex", gap: 10 }}> {["←", "→"].map((a) => ( <div key={a} style={{ width: 30, height: 30, borderRadius: 15, border: "1.2px solid rgba(255,255,255,0.7)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 13, }} > {a} </div> ))} </div> <div style={{ position: "absolute", right: 20, top: 352, fontSize: 25, fontWeight: 300, letterSpacing: "-0.01em" }}>DISCOVER IT</div> </Card> </AbsoluteFill> ); }; const Vanguard: React.FC<{ frame: number }> = ({ frame }) => { const z = slow(338, 10)(frame); return ( <AbsoluteFill> <Backdrop file="redfog.jpg" filter="saturate(1.3) contrast(1.1)" zoom={z} /> <Card box={{ left: 300, top: 128, width: 680, height: 466 }} tint="rgba(110,0,20,0.35)" border="rgba(255,170,170,0.35)" zoom={z}> <div style={{ position: "absolute", left: 18, top: 16, right: 18, display: "flex", alignItems: "center", fontSize: 8, letterSpacing: "0.08em" }}> <span style={{ fontSize: 13, fontWeight: 800, letterSpacing: "0.02em" }}>VANGUARD</span> <div style={{ flex: 1 }} /> <div style={{ display: "flex", gap: 22, opacity: 0.8, marginRight: 70 }}> <span>PROJECTS</span> <span>STUDIO</span> <span>OFFERINGS</span> <span>INQUIRE</span> </div> <div style={{ border: "1px solid rgba(255,255,255,0.5)", borderRadius: 4, padding: "5px 9px", fontSize: 7 }}>GET IN TOUCH ↗</div> </div> <div style={{ position: "absolute", left: 18, top: 46, fontSize: 7.5, letterSpacing: "0.3em", opacity: 0.75 }}>// WORLD-CLASS DIGITAL COLLECTIVE</div> <div style={{ position: "absolute", left: 16, top: 76, fontSize: 60, fontWeight: 900, letterSpacing: "-0.04em", lineHeight: 0.92, transform: "scaleX(0.86)", transformOrigin: "left top", }} > DESIGN. <br /> DISRUPT. <br /> CONQUER. </div> <div style={{ position: "absolute", left: 18, top: 278, fontSize: 8.5, lineHeight: 1.5, opacity: 0.8 }}> We build fierce brand experiences <br /> that don't just turn heads — they lead. </div> <div style={{ position: "absolute", left: 18, top: 318, background: "rgba(255,255,255,0.18)", borderRadius: 4, padding: "7px 12px", fontSize: 7, letterSpacing: "0.08em", }} > SEE OUR WORK → </div> </Card> </AbsoluteFill> ); }; const Equilibrium: React.FC<{ frame: number }> = ({ frame }) => { const z = slow(348, 12)(frame); return ( <AbsoluteFill> <Backdrop file="swirl.jpg" filter="saturate(1.2) brightness(0.85)" zoom={1.15 * z} /> <Card box={{ left: 276, top: 110, width: 724, height: 494 }} tint="rgba(8,12,26,0.72)" border="rgba(200,215,255,0.28)" zoom={z}> <div style={{ position: "absolute", left: 16, top: 13, right: 16, display: "flex", alignItems: "center", fontSize: 8 }}> <span style={{ fontWeight: 600, fontSize: 9 }}>∞ Equilibrium</span> <div style={{ flex: 1 }} /> <div style={{ display: "flex", gap: 14, alignItems: "center", opacity: 0.85, marginRight: 150 }}> <span style={{ background: "rgba(255,255,255,0.15)", padding: "3px 7px", borderRadius: 5 }}>Home</span> <span>Wellness ▾</span> <span>Routine</span> <span>Our Team</span> </div> <span style={{ opacity: 0.85, marginRight: 12 }}>Log in</span> <span style={{ background: "#fff", color: "#111", padding: "4px 9px", borderRadius: 10, fontWeight: 600 }}>Begin Now</span> </div> <div style={{ position: "absolute", left: 290, top: 95, width: 190, height: 190, borderRadius: 95, background: "radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0) 22%), radial-gradient(circle at 60% 65%, rgba(255,140,60,0.75), rgba(255,140,60,0) 45%), radial-gradient(circle at 40% 55%, rgba(60,120,255,0.65), rgba(20,30,80,0.9) 70%)", boxShadow: "inset -18px -22px 40px rgba(0,0,0,0.55), 0 0 40px rgba(120,160,255,0.25)", transform: `rotate(${(frame - 348) * 0.6}deg)`, }} /> <div style={{ position: "absolute", left: 24, top: 300, fontSize: 32, fontWeight: 300, lineHeight: 1.18, letterSpacing: "-0.02em" }}> Live Better, Feel <br /> Whole Every Day </div> <div style={{ position: "absolute", left: 24, top: 382, fontSize: 7.5, lineHeight: 1.5, opacity: 0.6, width: 230 }}> Take charge of how you feel with a companion built for your journey: build routines, follow your growth, and receive insights for a calmer, more vibrant life each day. </div> <div style={{ position: "absolute", left: 24, top: 420, display: "flex", gap: 14, alignItems: "center", fontSize: 7.5 }}> <span style={{ background: "rgba(255,255,255,0.85)", color: "#111", padding: "5px 11px", borderRadius: 10 }}>Start Today</span> <span style={{ opacity: 0.75 }}>Discover More</span> </div> </Card> </AbsoluteFill> ); }; const Swift: React.FC<{ frame: number }> = ({ frame }) => { const z = slow(360, 14)(frame); return ( <AbsoluteFill> <Backdrop file="racecar.jpg" filter="saturate(1.5) hue-rotate(-8deg) brightness(1.35) contrast(1.05)" zoom={1.08 * z} /> <AbsoluteFill style={{ background: "rgba(200,10,20,0.28)", mixBlendMode: "multiply" }} /> <Card box={{ left: 260, top: 100, width: 760, height: 516 }} tint="rgba(25,0,4,0.3)" border="rgba(255,170,170,0.35)" zoom={z}> <div style={{ position: "absolute", left: 20, top: 34, fontSize: 52, fontWeight: 800, letterSpacing: "-0.04em", lineHeight: 1.0 }}> SWIFT AND SIMPLE <br /> TRANSPORT </div> <div style={{ position: "absolute", left: 20, top: 186, background: "#e3202b", borderRadius: 10, padding: "5px 12px", fontSize: 7.5, fontWeight: 700, letterSpacing: "0.05em", }} > GET STARTED </div> <div style={{ position: "absolute", left: 20, bottom: 20, display: "flex", gap: 8, alignItems: "center" }}> <Img src={staticFile("idea-promo/cards/avatar-man2.png")} style={{ width: 26, height: 26, borderRadius: 13 }} /> <div style={{ fontSize: 8.5, fontWeight: 600, lineHeight: 1.2 }}> Book an Free <br /> Consultation <div style={{ fontSize: 6, fontWeight: 400, opacity: 0.6 }}>Schedule a call with our team today</div> </div> </div> </Card> </AbsoluteFill> ); }; // ---- the section ---------------------------------------------------------------------- const REVEALED = 337; // the burst has covered the frame export const SiteBurst: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; const site = [...SITES].reverse().find((s) => frame >= s.from)!; const overlay = keys([[318, 1], [328, 0]])(frame); if (frame < REVEALED) { const id = `burst-${frame}`; return ( <AbsoluteFill> <PromptScene frame={frame} /> <BurstClip frame={frame} id={id} /> {/* The site shows through the circles; the violet layer over it lifts as they grow, while the prompt underneath keeps its own. */} <AbsoluteFill style={{ clipPath: `url(#${id})` }}> {site.render(frame)} <AbsoluteFill style={{ opacity: overlay }}> <Overlay /> </AbsoluteFill> </AbsoluteFill> </AbsoluteFill> ); } return <AbsoluteFill>{site.render(frame)}</AbsoluteFill>; };›engine/src/idea-promo/Suddenly.tsx
engine/src/idea-promo/Suddenly.tsx import React from "react"; import { AbsoluteFill, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 5 (reference frames 148-172): "{suddenly}" cuts in at the centre, swells // slightly, then shrinks away faster and faster; the last frame is empty. export const SUDDENLY_FRAMES = 25; const FIRST = 148; // Scale against its largest size (frame 161), from the reference's text bounds. const scale = keys([ [148, 0.939], [149, 0.959], [150, 0.966], [151, 0.971], [152, 0.976], [153, 0.981], [154, 0.985], [155, 0.988], [156, 0.99], [157, 0.993], [158, 0.995], [159, 0.998], [161, 1], [162, 0.998], [163, 0.995], [164, 0.99], [165, 0.983], [166, 0.973], [167, 0.961], [168, 0.944], [169, 0.92], [170, 0.891], [171, 0.845], ]); const GONE = 171.5; const INK = "#18141c"; const WORD_SIZE = 90; const BRACE_SIZE = 160; const Brace: React.FC<{ char: string }> = ({ char }) => ( <span style={{ fontSize: BRACE_SIZE, fontWeight: 700, lineHeight: 1, display: "inline-block", position: "relative", top: -10, // The reference's braces are taller and narrower than Inter's. transform: "scale(0.82, 1.21)", }} > {char} </span> ); export const Suddenly: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; return ( <AbsoluteFill> <WhiteBase /> {frame < GONE ? ( <AbsoluteFill style={{ display: "flex", alignItems: "center", justifyContent: "center", fontFamily: INTER, color: INK, transform: `scale(${scale(frame)})`, }} > <div style={{ display: "flex", alignItems: "center", gap: 0 }}> <Brace char="{" /> <span style={{ fontSize: WORD_SIZE, fontWeight: 450, letterSpacing: "-0.07em", lineHeight: 1, position: "relative", top: -11, // The reference's grotesk is narrower than Inter, and its braces nearly // touch the word: squeeze the word and pull the braces in. display: "inline-block", transform: "scaleX(0.97)", margin: "0 -6px", }} > suddenly </span> <Brace char="}" /> </div> </AbsoluteFill> ) : null} <Overlay /> </AbsoluteFill> ); };›engine/src/idea-promo/VisionSite.tsx
engine/src/idea-promo/VisionSite.tsx import React from "react"; import { AbsoluteFill, Img, staticFile, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay } from "./Overlay"; import { keys } from "./track"; // Section 10 (reference frames 374-416): the last generated site, a dark agency hero // ("Your Vision / Our Digital Reality.") on a dusky hills backdrop with a guide grid, // pushes in slowly; then the camera pulls back as the violet layer washes back over // everything, handing over to section 11. // // Backdrop (Unsplash licence): 1765202641483-4a99d92133e0, in public/idea-promo/sites/. export const VISION_SITE_FRAMES = 43; const FIRST = 374; const zoom = keys([ [374, 0.985], [395, 1], [406, 1.005], [409, 0.995], [411, 0.975], [413, 0.945], [415, 0.9], [416, 0.86], ]); const lift = keys([ [406, 0], [416, -18], ]); const violet = keys([ [407, 0], [416, 1], ]); const GRID_X = [18, 268, 518, 768, 1018, 1268]; const GRID_Y = [8, 218, 430, 640]; // The silver-violet ribbon that sweeps along the bottom of the hero. const Ribbon: React.FC = () => ( <svg width={790} height={536} viewBox="0 0 790 536" style={{ position: "absolute", inset: 0 }}> <defs> <linearGradient id="vision-ribbon" x1="0" y1="0" x2="1" y2="1"> <stop offset="0" stopColor="#d9d3ff" /> <stop offset="0.35" stopColor="#7f62e6" /> <stop offset="0.7" stopColor="#2b1a55" /> <stop offset="1" stopColor="#0c0714" /> </linearGradient> <linearGradient id="vision-ribbon-2" x1="1" y1="0" x2="0" y2="1"> <stop offset="0" stopColor="#bfb4f2" /> <stop offset="0.45" stopColor="#4c3596" /> <stop offset="1" stopColor="#0c0714" /> </linearGradient> </defs> <path d="M0 360 C 70 330, 150 345, 205 400 C 255 450, 260 536, 260 536 L 0 536 Z" fill="url(#vision-ribbon)" opacity={0.95} /> <path d="M0 380 C 60 360, 120 380, 165 430 C 200 470, 205 536, 205 536 L 0 536 Z" fill="#0b0712" opacity={0.6} /> <path d="M790 350 C 720 380, 650 440, 560 500 C 520 520, 470 536, 470 536 L 790 536 Z" fill="url(#vision-ribbon-2)" opacity={0.85} /> <path d="M790 400 C 740 430, 690 470, 640 536 L 790 536 Z" fill="#0b0712" opacity={0.55} /> </svg> ); export const VisionSite: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; const s = zoom(frame); const camera: React.CSSProperties = { transform: `translateY(${lift(frame)}px) scale(${s})`, transformOrigin: "640px 360px", }; return ( <AbsoluteFill style={{ backgroundColor: "#2a1838" }}> <AbsoluteFill style={{ ...camera, overflow: "visible" }}> <Img src={staticFile("idea-promo/sites/hills.jpg")} style={{ position: "absolute", left: -80, top: -45, width: 1440, height: 810, objectFit: "cover", filter: "hue-rotate(15deg) saturate(1.2) brightness(1.9) contrast(0.8)", }} /> <AbsoluteFill style={{ background: "linear-gradient(180deg, rgba(250,200,215,0.25) 0%, rgba(235,185,215,0.15) 45%, rgba(130,70,180,0.45) 75%, rgba(110,55,160,0.6) 100%)" }} /> <svg width={1280} height={720} style={{ position: "absolute", inset: 0 }}> {GRID_X.map((x) => ( <line key={`x${x}`} x1={x} y1={0} x2={x} y2={720} stroke="rgba(255,255,255,0.2)" strokeWidth={1.2} /> ))} {GRID_Y.map((y) => ( <line key={`y${y}`} x1={0} y1={y} x2={1280} y2={y} stroke="rgba(255,255,255,0.2)" strokeWidth={1.2} /> ))} </svg> <div style={{ position: "absolute", left: 245, top: 92, width: 790, height: 536, borderRadius: 18, overflow: "hidden", background: "linear-gradient(180deg, #030205 0%, #07040c 55%, #1a0f2c 100%)", border: "2.5px solid rgba(250,225,255,0.6)", boxShadow: "0 0 0 5px rgba(250,215,250,0.18), 0 20px 60px rgba(30,10,50,0.45)", fontFamily: INTER, color: "#fff", textAlign: "center", }} > <Ribbon /> <div style={{ position: "absolute", left: 0, right: 0, top: 70, display: "flex", justifyContent: "center", alignItems: "center", gap: 7, fontSize: 10, color: "#b9b4c2" }}> <div style={{ width: 12, height: 12, borderRadius: 3, background: "linear-gradient(135deg, #c27bff, #7a2fe0)" }} /> Used by founders. Loved by devs. </div> <div style={{ position: "absolute", left: 0, right: 0, top: 118, fontSize: 50, fontWeight: 500, letterSpacing: "-0.01em", lineHeight: 1.22, backgroundImage: "linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #c9a6f6 100%)", backgroundClip: "text", WebkitBackgroundClip: "text", color: "transparent", }} > Your Vision <br /> Our Digital Reality. </div> <div style={{ position: "absolute", left: 0, right: 0, top: 276, fontSize: 14.5, lineHeight: 1.45, color: "#d2cfd9" }}> We turn bold ideas into modern designs that don't just <br /> look amazing, they grow your business fast. </div> <div style={{ position: "absolute", left: 313, top: 347, height: 36, padding: "0 6px 0 16px", borderRadius: 18, background: "#ecebf0", color: "#1b1720", display: "flex", alignItems: "center", gap: 10, fontSize: 12.5, fontWeight: 500, boxShadow: "0 0 16px rgba(255,255,255,0.25)", }} > Book a 15-min call <div style={{ width: 24, height: 24, borderRadius: 12, background: "#9b4df0", color: "#fff", fontSize: 12, display: "flex", alignItems: "center", justifyContent: "center" }}>↗</div> </div> </div> </AbsoluteFill> <AbsoluteFill style={{ opacity: violet(frame) }}> <Overlay /> </AbsoluteFill> </AbsoluteFill> ); };›engine/src/idea-promo/WhatIfSkip.tsx
engine/src/idea-promo/WhatIfSkip.tsx import React from "react"; import { AbsoluteFill, useCurrentFrame } from "remotion"; import { INTER, useInter } from "./fonts"; import { Overlay, WhiteBase } from "./Overlay"; import { keys } from "./track"; // Section 7 (reference frames 233-279): a pale pink pill glides in from the right while // "But what if you could" types into it. At frame 252 it snaps to a compact pill with a // violet "Skip" button beside it and a hand cursor on the button; the cursor clicks // (the button flashes pale), a soft grey ring appears around both, and then everything // sinks out of frame, faster and faster, into section 8. export const WHAT_IF_SKIP_FRAMES = 47; const FIRST = 233; const COMPACT = 252; const INK = "#2a1b2a"; const PILL_FILL = "linear-gradient(90deg, #fbc6fa 0%, #fbd6fa 45%, rgba(248,214,246,0.9) 80%, rgba(248,214,246,0) 100%)"; // Phase 1: the wide pill's left edge as it slides in (from the text's left edge, which // rides 114px inside it). const pillLeft = keys([ [233, 555], [234, 532], [235, 511], [236, 492], [237, 475], [238, 460], [239, 447], [240, 435], [241, 425], [242, 416], [243, 408], [244, 400], [245, 394], [246, 387], [247, 382], [248, 377], [249, 372], [250, 368], [251, 364], ]); const WORDS: Array<{ text: string; at: number; settle: number }> = [ { text: "But", at: 234.5, settle: 236 }, { text: "what", at: 236.5, settle: 238 }, { text: "if", at: 238.5, settle: 240 }, { text: "you", at: 240.5, settle: 242 }, { text: "could", at: 242.5, settle: 250 }, ]; // Phase 2: the compact group grows into place about its centre, then sinks away. const groupScale = keys([ [252, 0.89], [253, 0.92], [254, 0.94], [255, 0.955], [256, 0.965], [257, 0.973], [259, 0.985], [261, 0.995], [263, 1], ]); const groupDrop = keys([ [263, 0], [265, 1], [266, 2], [267, 4], [268, 6], [269, 8], [270, 10], [271, 14], [272, 18], [273, 22], [274, 26], [275, 34], [276, 42], [277, 51], [278, 63], [279, 80], [280, 102], ]); // The Skip button: vivid, pale while pressed, then deep violet. const SKIP_VIVID = [139, 52, 245]; const SKIP_PRESSED = [176, 128, 242]; const SKIP_DEEP = [112, 16, 226]; const skipColour = (frame: number) => { const toPressed = keys([[255.5, 0], [256.5, 1], [262, 1], [263, 0]])(frame); const deep = frame >= 262.5 ? 1 : 0; const base = deep ? SKIP_DEEP : SKIP_VIVID; const c = base.map((v, i) => Math.round(v + (SKIP_PRESSED[i] - v) * toPressed)); return `rgb(${c.join(",")})`; }; // A border of dots around a rounded rectangle (two rows, like the reference's halo). const DotFrame: React.FC<{ left: number; top: number; width: number; height: number }> = ({ left, top, width, height }) => ( <div style={{ position: "absolute", left, top, width, height, borderRadius: height / 2, backgroundImage: "radial-gradient(circle, rgba(60,50,70,0.45) 1px, transparent 1.4px)", backgroundSize: "7.5px 7.5px", // keep only a 15px band: the full box minus its content box padding: 15, boxSizing: "border-box", WebkitMaskImage: "linear-gradient(#000, #000), linear-gradient(#000, #000)", WebkitMaskClip: "content-box, border-box", WebkitMaskComposite: "xor", maskImage: "linear-gradient(#000, #000), linear-gradient(#000, #000)", maskClip: "content-box, border-box", maskComposite: "exclude", }} /> ); // Lucide "pointer" hand (ISC licence), white with an ink outline. const Hand: React.FC<{ size: number }> = ({ size }) => ( <svg width={size} height={size} viewBox="0 0 24 24" fill="#fff" stroke={INK} strokeWidth={1.6} strokeLinecap="round" strokeLinejoin="round"> <path d="M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15V4a2 2 0 0 1 4 0v6a2 2 0 0 1 4 0v1a2 2 0 0 1 3 0z" /> <path d="M11 10V9M15 11v-1M7 15v0" fill="none" /> </svg> ); const Wide: React.FC<{ frame: number }> = ({ frame }) => { const left = pillLeft(frame); const appear = keys([[232.5, 0.3], [235.5, 1]])(frame); return ( <div style={{ position: "absolute", left: 0, top: 0, width: 1280, height: 720, opacity: appear }}> <DotFrame left={left - 22} top={274} width={630} height={172} /> <div style={{ position: "absolute", left, top: 296, width: 590, height: 132, borderRadius: 66, background: PILL_FILL, boxShadow: "0 10px 30px rgba(220,150,240,0.25)", }} /> <div style={{ position: "absolute", left: left + 114, top: 296, height: 132, display: "flex", alignItems: "center", gap: 11, fontFamily: INTER, fontSize: 48, fontWeight: 500, letterSpacing: "-0.08em", color: INK, whiteSpace: "pre", }} > {WORDS.map((w) => ( <span key={w.text} style={{ opacity: keys([[w.at, 0], [w.at + 0.5, 0.3], [w.at + 1.5, 0.5], [w.settle, 1]])(frame) }}> {w.text} </span> ))} </div> </div> ); }; const Compact: React.FC<{ frame: number }> = ({ frame }) => { const s = groupScale(frame); const dy = groupDrop(frame); const ring = keys([[256.5, 0], [258.5, 1]])(frame); return ( <div style={{ position: "absolute", left: 0, top: 0, width: 1280, height: 720, transformOrigin: "650px 360px", transform: `translateY(${dy}px) scale(${s})`, }} > <div style={{ position: "absolute", left: 320, top: 270, width: 656, height: 182, borderRadius: 91, border: "32px solid rgba(208,202,214,0.75)", boxSizing: "border-box", filter: "blur(3px)", opacity: ring, // only the two end arcs show in the reference WebkitMaskImage: "linear-gradient(90deg, #000 0%, #000 9%, transparent 21%, transparent 79%, #000 91%, #000 100%)", maskImage: "linear-gradient(90deg, #000 0%, #000 9%, transparent 21%, transparent 79%, #000 91%, #000 100%)", }} /> <DotFrame left={368} top={304} width={562} height={108} /> <div style={{ position: "absolute", left: 375, top: 320, width: 393, height: 80, borderRadius: 40, background: "linear-gradient(90deg, #fbc6fa 0%, #fbd6fa 60%, rgba(248,214,246,0.85) 100%)", boxShadow: "0 8px 22px rgba(220,150,240,0.25)", display: "flex", alignItems: "center", paddingLeft: 47, boxSizing: "border-box", fontFamily: INTER, fontSize: 41, fontWeight: 500, letterSpacing: "-0.075em", color: INK, whiteSpace: "pre", }} > But what if you could </div> <div style={{ position: "absolute", left: 797, top: 342, width: 124, height: 38, borderRadius: 19, background: skipColour(frame), boxShadow: "0 6px 16px rgba(120,30,220,0.3)", display: "flex", alignItems: "center", justifyContent: "center", fontFamily: INTER, fontSize: 23, fontWeight: 500, letterSpacing: "-0.04em", color: "#fff", }} > Skip </div> <div style={{ position: "absolute", left: 852, top: 360 }}> <Hand size={48} /> </div> </div> ); }; export const WhatIfSkip: React.FC = () => { const frame = useCurrentFrame() + FIRST; const ready = useInter(); if (!ready) return null; return ( <AbsoluteFill> <WhiteBase /> {frame < COMPACT ? <Wide frame={frame} /> : <Compact frame={frame} />} <Overlay /> </AbsoluteFill> ); };›engine/src/idea-promo/YouHaveAnIdea.tsx
engine/src/idea-promo/YouHaveAnIdea.tsx import React from "react"; import { AbsoluteFill } from "remotion"; import { Background } from "./Background"; import { INTER, useInter } from "./fonts"; import { MotionBlur } from "./MotionBlur"; import { keys } from "./track"; // Section 1 (reference frames 0-32): "You have an" blurs in word by word while the camera // pulls back from it, then whips right into a giant gradient "Idea" that slides in from // the left, settles, and drops out of frame downward into section 2. export const YOU_HAVE_AN_IDEA_FRAMES = 33; const CUT = 14.5; // the whip from the phrase to "Idea" // "You have an": scale about its centre (1 = settled size) and its drift to the right, // both measured from the reference's text bounds. const phraseScale = keys([ [1, 2.25], [2, 2.0], [3, 1.8], [4, 1.63], [5, 1.49], [6, 1.37], [7, 1.28], [8, 1.21], [9, 1.15], [10, 1.1], [11, 1.07], [12, 1.04], [13, 1.02], [14, 1.0], [15, 0.99], ]); const phraseX = keys([ [6, -2], [8, 1], [10, 9], [12, 24], [13, 36], [14, 55], [15, 85], ]); // Each word fades and unblurs in over about a frame and a half, one after another. const WORDS: Array<{ text: string; start: number }> = [ { text: "You", start: 1.5 }, { text: "have", start: 2.8 }, { text: "an", start: 4.3 }, ]; const wordIn = (frame: number, start: number) => keys([[start, 0], [start + 1.5, 1]])(frame); // "Idea": slides in from the left with a long ease-out that keeps drifting, then falls away. const ideaX = keys([ [14.5, -370], [15, -249], [16, -172], [17, -131], [18, -101], [19, -77], [20, -60], [21, -48], [22, -35], [23, -24], [24, -15], [25, -6.5], [26, 0], [27, 5], [28, 10], [29, 14], [30, 16], [31, 18], [32, 19], ]); const ideaY = keys([ [27, 0], [28, 2], [29, 9], [30, 24], [31, 50], [32, 94], [33, 150], ]); const PHRASE_SIZE = 63; const PHRASE_CENTER_Y = 359.5; const IDEA_SIZE = 740; // Where the settled line box sits; this puts the "I" at x 64 and the baseline at y 635 // like the reference. const IDEA_LEFT = 9; const IDEA_TOP = -12; // Near-black pooled at the top middle, melting into violet: lavender on the left, // deepest under the "d", brightest on the "a". const IDEA_FILL = [ "radial-gradient(ellipse 75% 110% at 35% 0%, rgba(24,24,24,1) 40%, rgba(24,24,24,0.5) 70%, rgba(24,24,24,0) 100%)", "linear-gradient(90deg, #9c74d2 0%, #8a3cc4 40%, #9038cc 65%, #a83ce0 100%)", ].join(", "); const Phrase: React.FC<{ frame: number }> = ({ frame }) => ( <div style={{ position: "absolute", left: 0, width: 1280, top: PHRASE_CENTER_Y - PHRASE_SIZE / 2, height: PHRASE_SIZE, display: "flex", justifyContent: "center", alignItems: "center", gap: PHRASE_SIZE * 0.15, fontFamily: INTER, fontSize: PHRASE_SIZE, fontWeight: 500, letterSpacing: "-0.075em", lineHeight: 1, color: "#1b1820", transform: `translateX(${phraseX(frame)}px) scale(${phraseScale(frame)})`, }} > {WORDS.map(({ text, start }) => { const t = wordIn(frame, start); return ( <span key={text} style={{ opacity: t, filter: `blur(${(1 - t) * 3}px)` }}> {text} </span> ); })} </div> ); const Idea: React.FC<{ frame: number }> = ({ frame }) => ( <div style={{ position: "absolute", left: IDEA_LEFT, top: IDEA_TOP, fontFamily: INTER, fontSize: IDEA_SIZE, fontWeight: 450, letterSpacing: "-0.065em", lineHeight: 1, transform: `translate(${ideaX(frame)}px, ${ideaY(frame)}px)`, }} > <span style={{ backgroundImage: IDEA_FILL, backgroundClip: "text", WebkitBackgroundClip: "text", color: "transparent", }} > Idea </span> </div> ); export const YouHaveAnIdea: React.FC = () => { const ready = useInter(); if (!ready) return null; return ( <MotionBlur render={(frame) => ( <AbsoluteFill> <Background /> {frame < CUT ? <Phrase frame={frame} /> : <Idea frame={frame} />} </AbsoluteFill> )} /> ); };
Download assets (fonts and images)
curl -O https://www.sycamore.to/sycamore-assets.mjsnode sycamore-assets.mjs idea-promo
Sycamore