π₯ Make videos programmatically with React
remotion.dev/brand: Add WebMCP promo video
JonnyBurger28e1b5e8f00f
diff --git a/packages/brand/src/Bouncy.tsx b/packages/brand/src/Bouncy.tsxnew file mode 100644index 0000000000..b7982f887f--- /dev/null+++ b/packages/brand/src/Bouncy.tsx@@ -0,0 +1,31 @@+import React from 'react';+import {Sequence, Solid} from 'remotion';+import {ProductDiscountCallout} from './product-discount-callout.element';++export const Bouncy: React.FC = () => {+ return (+ <>+ <Solid+ width={1920}+ height={1080}+ color={'#ffffff'}+ style={{+ position: 'absolute',+ }}+ />+ <Sequence+ name="Product Discount Callout"+ width={900}+ height={650}+ durationInFrames={120}+ style={{+ position: 'absolute',+ translate: '510px 215px',+ scale: 1.619,+ }}+ >+ <ProductDiscountCallout />+ </Sequence>+ </>+ );+};diff --git a/packages/brand/src/McpCloseUp.tsx b/packages/brand/src/McpCloseUp.tsxnew file mode 100644index 0000000000..d4ff59c7a5--- /dev/null+++ b/packages/brand/src/McpCloseUp.tsx@@ -0,0 +1,380 @@+import {radialProgressiveBlur} from '@remotion/effects/radial-progressive-blur';+import {MacOSCursor} from '@remotion/mac-cursors';+import {Video} from '@remotion/media';+import {+ AbsoluteFill,+ Composition,+ Easing,+ HtmlInCanvas,+ interpolate,+ useCurrentFrame,+} from 'remotion';++export const McpCloseUpPreview = () => {+ const frame = useCurrentFrame();++ return (+ <HtmlInCanvas+ width={1920}+ height={1080}+ effects={[+ radialProgressiveBlur({+ center: [0.576, 0.571],+ start: 0.5,+ endBlur: 27,+ }),+ ]}+ >+ <AbsoluteFill+ style={{+ width: 3292,+ height: 2032,+ translate: '-902.2px -320.4px',+ scale: 1.409,+ rotate: '0.958328 0.158863 -0.237424 39.281197deg',+ }}+ from={-152}+ >+ <Video+ src="https://remotion.media/webmcp-promo/mcp-close-up.mp4"+ style={{+ position: 'absolute',+ }}+ />+ <MacOSCursor+ cursor={interpolate(+ frame,+ [-140, -73, -72, -51, -50, -14, -13, 16],+ [+ 'auto',+ 'row-resize',+ 'auto',+ 'row-resize',+ 'auto',+ 'default',+ 'auto',+ 'auto',+ ],+ {+ easing: [+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ ],+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ )}+ style={{+ position: 'absolute',+ left: 0,+ top: 0,+ scale: interpolate(frame, [-152, 43, 48, 55], [3, 3, 2.85, 3], {+ easing: [+ Easing.step1,+ Easing.spring({+ damping: 10,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ }),+ translate: interpolate(+ frame,+ [+ -140, -98, -97, -96, -95, -94, -93, -92, -91, -90, -89, -88,+ -87, -86, -85, -84, -83, -82, -81, -80, -79, -78, -77, -76, -75,+ -74, -73, -72, -71, -70, -69, -53, -52, -51, -50, -49, -48, -47,+ -46, -45, -44, -43, -42, -41, -40, -39, -38, -37, -36, -35, -34,+ -33, -32, -31, -26, -25, -24, -23, -22, -21, -20, -19, -18, -17,+ -16, -15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3,+ -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32,+ 33, 34, 35, 39, 40, 41, 42, 68, 103,+ ],+ [+ '1074.90234375px 932.00390625px',+ '1074.90234375px 932.00390625px',+ '2358.1875px 1925.82421875px',+ '2362.1953125px 1907.75390625px',+ '2372.21484375px 1889.68359375px',+ '2378.2265625px 1877.63671875px',+ '2382.66796875px 1861.8515625px',+ '2387.109375px 1846.06640625px',+ '2389.11328125px 1830.28125px',+ '2389.11328125px 1810.7578125px',+ '2389.11328125px 1786.6171875px',+ '2389.11328125px 1776.85546875px',+ '2379.76171875px 1751.30859375px',+ '2370.84375px 1725.76171875px',+ '2364.80859375px 1713.71484375px',+ '2359.921875px 1703.953125px',+ '2352.5859375px 1684.4296875px',+ '2342.8125px 1664.90625px',+ '2337.05859375px 1650.52734375px',+ '2325.55078125px 1621.76953125px',+ '2314.91015625px 1597.62890625px',+ '2303.40234375px 1568.87109375px',+ '2283.26953125px 1528.60546875px',+ '2267.7421875px 1494.703125px',+ '2258.8359375px 1478.91796875px',+ '2249.9296875px 1463.1328125px',+ '2241.890625px 1451.0859375px',+ '2234.70703125px 1441.8984375px',+ '2231.9765625px 1437.5859375px',+ '2230.828125px 1435.2890625px',+ '2229.6796875px 1434.140625px',+ '2229.6796875px 1434.140625px',+ '2237.96484375px 1434.140625px',+ '2281.6640625px 1456.640625px',+ '2333.484375px 1496.3203125px',+ '2365.93359375px 1528.76953125px',+ '2403.41015625px 1569.99609375px',+ '2423.51953125px 1592.98828125px',+ '2429.09765625px 1602.15234375px',+ '2432.671875px 1612.453125px',+ '2432.671875px 1616.7421875px',+ '2432.671875px 1619.89453125px',+ '2432.671875px 1623.3046875px',+ '2431.5234375px 1624.44140625px',+ '2427.2109375px 1626.01171875px',+ '2424.9140625px 1626.01171875px',+ '2420.6015625px 1627.58203125px',+ '2417.4375px 1627.58203125px',+ '2411.9765625px 1629.85546875px',+ '2405.6484375px 1631.42578125px',+ '2403.3515625px 1631.42578125px',+ '2401.0546875px 1632.5625px',+ '2398.7578125px 1632.5625px',+ '2397.609375px 1633.69921875px',+ '2397.609375px 1633.69921875px',+ '2397.609375px 1631.7890625px',+ '2394.87890625px 1627.4765625px',+ '2386.96875px 1617.984375px',+ '2375.625px 1604.63671875px',+ '2370.73828125px 1594.875px',+ '2354.7890625px 1576.04296875px',+ '2346.1640625px 1564.53515625px',+ '2307.28125px 1519.01953125px',+ '2284.51171875px 1490.49609375px',+ '2271.2578125px 1473.9375px',+ '2242.98046875px 1437.26953125px',+ '2213.77734375px 1399.0078125px',+ '2166.31640625px 1336.546875px',+ '2144.4375px 1308.48046875px',+ '2113.546875px 1259.26171875px',+ '2091.22265625px 1229.4375px',+ '2068.03125px 1193.00390625px',+ '2050.78125px 1167.1171875px',+ '2036.40234375px 1141.23046875px',+ '2025.05859375px 1127.8828125px',+ '2019.0234375px 1115.8359375px',+ '2012.98828125px 1103.7890625px',+ '2008.2421875px 1097.4609375px',+ '2003.49609375px 1091.1328125px',+ '2000.33203125px 1084.8046875px',+ '1995.5859375px 1078.4765625px',+ '1990.40625px 1070.87109375px',+ '1985.66015625px 1064.54296875px',+ '1980.9140625px 1059.796875px',+ '1977.75px 1053.46875px',+ '1973.00390625px 1047.140625px',+ '1969.40625px 1037.953125px',+ '1964.2265625px 1028.765625px',+ '1954.60546875px 1013.5546875px',+ '1949.00390625px 1004.3671875px',+ '1943.40234375px 995.1796875px',+ '1940.23828125px 988.8515625px',+ '1937.5078125px 984.5390625px',+ '1935.2109375px 982.2421875px',+ '1932.48046875px 977.9296875px',+ '1929.75px 973.6171875px',+ '1927.01953125px 969.3046875px',+ '1924.72265625px 967.0078125px',+ '1923.57421875px 963.84375px',+ '1921.27734375px 961.546875px',+ '1920.12890625px 959.25px',+ '1917.83203125px 956.953125px',+ '1915.1015625px 952.640625px',+ '1912.37109375px 949.4765625px',+ '1910.2734375px 947.37890625px',+ '1909.125px 945.08203125px',+ '1909.125px 945.08203125px',+ '1908.17578125px 943.18359375px',+ '1908.17578125px 943.18359375px',+ '1907.30859375px 942.03515625px',+ '1907.30859375px 942.03515625px',+ '1907.30859375px 941.2265625px',+ '1906.44140625px 941.2265625px',+ '1906.44140625px 941.2265625px',+ '1906.44140625px 940.27734375px',+ '1906.44140625px 940.27734375px',+ '1906.44140625px 939.515625px',+ '1906.44140625px 939.515625px',+ '1905.57421875px 939.515625px',+ '1905.57421875px 939.515625px',+ '2478.8px 939.5px',+ ],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.linear,+ Easing.bezier(0.42, 0, 1, 1),+ ],+ },+ ),+ }}+ />+ </AbsoluteFill>+ </HtmlInCanvas>+ );+};++export const McpCloseUp = () => {+ return (+ <Composition+ id="McpCloseUp"+ component={McpCloseUpPreview}+ width={1920}+ height={1080}+ fps={60}+ durationInFrames={120}+ />+ );+};diff --git a/packages/brand/src/Root.tsx b/packages/brand/src/Root.tsxindex a76bb2dd58..dcc42121ca 100644--- a/packages/brand/src/Root.tsx+++ b/packages/brand/src/Root.tsx@@ -12,11 +12,11 @@ import {ApplicationVideoEditor,Applications,} from './Applications';+import {Bouncy} from './Bouncy';import {Banner} from './Brand/Banner';import {Comp} from './Brand/Composition';import {TriangleDemo} from './Brand/TriangleToSquare';import {CanvasCaptureComposition} from './CanvasCapturePreview';-import {Checker} from './Checker';import {CloseUp1} from './CloseUp1';import {CloseUp2} from './CloseUp2';import {CloseUp3} from './CloseUp3';@@ -101,6 +101,7 @@ import './index.css';import {Logo} from './Logo';import {LogoCollab, logoCollabSchema} from './LogoCollab/LogoCollab';import {LogoHorn, calculateLogoHornMetadata} from './LogoHorn';+import {McpCloseUp} from './McpCloseUp';import NewSticker from './NewSticker';import {PreviewToolbarIcons} from './PreviewToolbarIcons';import {@@ -145,6 +146,17 @@ import {Prompt, PromptSchema} from './video-elements/Prompt';import {StepGuide, stepGuideSchema} from './video-elements/step-guide';import {GithubRepo, githubRepoSchema} from './video-elements/upper-reference';import {UpperThird, upperThirdSchema} from './video-elements/UpperThird';+import {WebMCPCloseUp} from './WebMCPCloseUp';+import {BrowserScaleScene} from './WebMCPPromo/BrowserScaleScene';+import {ChatMessageScene} from './WebMCPPromo/ChatMessageScene';+import {+ MacBookAppScene,+ MacBookDesktopScene,+ MacBookLoopScene,+ MacBookScene,+} from './WebMCPPromo/MacBookScene';+import {WebMCPPromo} from './WebMCPPromo/WebMCPPromo';+import {WebMCPPromo2} from './WebMCPPromo2';export const RemotionRoot: React.FC = () => {return (@@ -879,14 +891,7 @@ export const RemotionRoot: React.FC = () => {width={EFFECT_SHOWCASE_WIDTH}height={EFFECT_SHOWCASE_HEIGHT}/>- <Composition- id="Checker"- component={Checker}- durationInFrames={1000}- fps={30}- width={900}- height={900}- />+<Folder name="CloseUps"><CloseUp1 /><CloseUp2 />@@ -896,6 +901,7 @@ export const RemotionRoot: React.FC = () => {<CloseUp6 /><CloseUp7 /><CloseUp8 />+ <McpCloseUp /></Folder><Compositionid="CloseUpsSeries"@@ -905,6 +911,74 @@ export const RemotionRoot: React.FC = () => {width={1920}height={1080}/>+ <Composition+ id="Bouncy"+ component={Bouncy}+ durationInFrames={100}+ fps={30}+ width={1920}+ height={1080}+ />+ <Folder name="WebMCPPromo-Scenes">+ <Composition+ id="WebMCPPromo-MacBook-Loop"+ component={MacBookLoopScene}+ durationInFrames={800}+ fps={60}+ width={1920}+ height={1080}+ />+ <Composition+ id="WebMCPPromo-MacBook"+ component={MacBookScene}+ durationInFrames={800}+ fps={60}+ width={1920}+ height={1080}+ />+ <Composition+ id="WebMCPPromo-MacBook-Desktop"+ component={MacBookDesktopScene}+ durationInFrames={1200}+ fps={60}+ width={1920}+ height={1080}+ />+ <Composition+ id="WebMCPPromo-MacBook-App"+ component={MacBookAppScene}+ durationInFrames={1200}+ fps={60}+ width={1320}+ height={827}+ />+ <Composition+ id="WebMCPPromo-ChatMessage"+ component={ChatMessageScene}+ durationInFrames={90}+ fps={60}+ width={1920}+ height={1080}+ />+ <Composition+ id="WebMCPPromo-BrowserScale"+ component={BrowserScaleScene}+ durationInFrames={120}+ fps={60}+ width={1920}+ height={1080}+ />+ </Folder>+ <Composition+ id="WebMCPPromo"+ component={WebMCPPromo}+ durationInFrames={510}+ fps={60}+ width={1920}+ height={1080}+ />+ <WebMCPCloseUp />+ <WebMCPPromo2 /></>);};diff --git a/packages/brand/src/WebMCPCloseUp.tsx b/packages/brand/src/WebMCPCloseUp.tsxnew file mode 100644index 0000000000..c84db629d6--- /dev/null+++ b/packages/brand/src/WebMCPCloseUp.tsx@@ -0,0 +1,517 @@+import {MacOSCursor} from '@remotion/mac-cursors';+import {Video} from '@remotion/media';+import {+ AbsoluteFill,+ Easing,+ interpolate,+ staticFile,+ useCurrentFrame,+} from 'remotion';++export const WebMCPCloseUpPreview = () => {+ const frame = useCurrentFrame();++ return (+ <AbsoluteFill+ style={{+ width: 2806,+ height: 2056,+ translate: '0px -203.1px',+ }}+ from={-512}+ >+ <Video+ src={staticFile(+ 'remotion-capture-localhost-2026-08-26T13-08-19-353Z.mp4',+ )}+ style={{+ position: 'absolute',+ }}+ />+ <MacOSCursor+ cursor={interpolate(+ frame,+ [+ -500, -352, -351, -289, -285, -272, -269, -266, -263, -257, -254,+ -251, -250, -242, -241, -240, -238, -207, -205, -195, -191, -170,+ -162, -125, -124, -104, -99, -61, -59, -31, -27, -5, -1, 1, 2,+ ],+ [+ 'auto',+ 'default',+ 'auto',+ 'row-resize',+ 'auto',+ 'row-resize',+ 'auto',+ 'default',+ 'auto',+ 'default',+ 'auto',+ 'ns-resize',+ 'auto',+ 'ns-resize',+ 'auto',+ 'ew-resize',+ 'auto',+ 'ew-resize',+ 'auto',+ 'default',+ 'auto',+ 'default',+ 'auto',+ 'ns-resize',+ 'auto',+ 'ns-resize',+ 'auto',+ 'ns-resize',+ 'auto',+ 'default',+ 'auto',+ 'default',+ 'auto',+ 'ns-resize',+ 'auto',+ ],+ {+ easing: [+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ ],+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ )}+ style={{+ position: 'absolute',+ left: 0,+ top: 0,+ scale: interpolate(+ frame,+ [-512, -328, -321, 54, 63],+ [3, 2.7, 3, 2.7, 3],+ {+ easing: [Easing.step1, Easing.step1, Easing.step1, Easing.step1],+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ translate: interpolate(+ frame,+ [+ -500, -419, -418, -417, -416, -415, -414, -413, -412, -411, -410,+ -409, -408, -401, -400, -399, -398, -397, -396, -395, -394, -393,+ -392, -391, -390, -389, -387, -386, -384, -383, -368, -367, -366,+ -365, -364, -363, -362, -361, -360, -359, -358, -357, -356, -355,+ -354, -353, -352, -351, -350, -349, -348, -347, -346, -345, -344,+ -343, -342, -341, -340, -339, -338, -337, -336, -335, -334, -333,+ -332, -331, -330, -329, -328, -327, -311, -310, -309, -308, -307,+ -306, -305, -304, -303, -302, -301, -300, -299, -298, -297, -296,+ -295, -294, -293, -292, -291, -290, -289, -288, -287, -286, -285,+ -284, -283, -282, -281, -280, -276, -275, -274, -273, -272, -271,+ -270, -269, -268, -267, -266, -265, -264, -263, -262, -261, -260,+ -259, -258, -257, -256, -255, -254, -253, -252, -251, -250, -249,+ -248, -247, -246, -245, -244, -243, -242, -241, -240, -239, -238,+ -237, -236, -235, -234, -233, -232, -231, -230, -229, -228, -227,+ -226, -225, -224, -223, -222, -213, -212, -211, -210, -209, -208,+ -207, -206, -205, -204, -203, -202, -201, -200, -199, -198, -197,+ -196, -195, -194, -193, -192, -191, -190, -189, -173, -172, -171,+ -170, -169, -168, -167, -166, -165, -164, -163, -162, -161, -160,+ -159, -158, -157, -156, -155, -154, -153, -130, -129, -128, -127,+ -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116,+ -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105,+ -104, -103, -102, -101, -100, -99, -98, -97, -96, -95, -94, -93,+ -92, -91, -88, -87, -64, -63, -62, -61, -60, -59, -58, -57, -56,+ -55, -54, -53, -52, -51, -50, -49, -48, -47, -46, -45, -44, -43,+ -42, -41, -40, -39, -38, -37, -36, -35, -34, -33, -32, -31, -30,+ -29, -28, -27, -26, -25, -24, -10, -9, -8, -7, -6, -5, -4, -3, -2,+ -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,+ 34, 35, 36, 37, 259, 260,+ ],+ [+ '889.6171875px 759.41015625px',+ '889.6171875px 759.41015625px',+ '2097.515625px 1610.2265625px',+ '2094.3515625px 1600.734375px',+ '2089.60546875px 1594.40625px',+ '2083.27734375px 1584.9140625px',+ '2080.546875px 1580.6015625px',+ '2077.3828125px 1574.2734375px',+ '2076.234375px 1569.9609375px',+ '2074.65234375px 1563.6328125px',+ '2073.50390625px 1561.3359375px',+ '2073.50390625px 1560.38671875px',+ '2073.50390625px 1559.23828125px',+ '2073.50390625px 1559.23828125px',+ '2077.51171875px 1568.5546875px',+ '2088.99609375px 1597.2890625px',+ '2100.48046875px 1626.0234375px',+ '2109.09375px 1640.390625px',+ '2123.015625px 1678.875px',+ '2132.765625px 1698.375px',+ '2134.76953125px 1704.38671875px',+ '2139.9140625px 1716.703125px',+ '2139.9140625px 1718.9765625px',+ '2141.05078125px 1720.11328125px',+ '2141.05078125px 1720.11328125px',+ '2141.05078125px 1720.93359375px',+ '2141.05078125px 1720.93359375px',+ '2141.05078125px 1721.71875px',+ '2141.05078125px 1721.71875px',+ '2141.8359375px 1721.71875px',+ '2141.8359375px 1721.71875px',+ '2141.8359375px 1720.98046875px',+ '2141.8359375px 1720.04296875px',+ '2141.8359375px 1717.74609375px',+ '2141.8359375px 1715.44921875px',+ '2143.40625px 1709.12109375px',+ '2143.40625px 1705.95703125px',+ '2149.41796875px 1680.984375px',+ '2153.859375px 1665.19921875px',+ '2157.1640625px 1635.5625px',+ '2159.6015625px 1625.80078125px',+ '2177.70703125px 1577.16796875px',+ '2203.93359375px 1528.41796875px',+ '2235.9140625px 1489.359375px',+ '2254.65234375px 1466.859375px',+ '2299.62890625px 1433.109375px',+ '2366.66015625px 1399.5703125px',+ '2509.875px 1355.203125px',+ '2602.32421875px 1335.7734375px',+ '2650.20703125px 1327.3828125px',+ '2710.95703125px 1316.33203125px',+ '2776.7578125px 1307.0625px',+ '2796.62109375px 1300.4296875px',+ '2835.10546875px 1292.21484375px',+ '2854.60546875px 1287.31640625px',+ '2866.62890625px 1285.30078125px',+ '2875.79296875px 1285.30078125px',+ '2887.81640625px 1283.28515625px',+ '2900.1328125px 1280.12109375px',+ '2904.421875px 1278.5390625px',+ '2908.7109375px 1276.95703125px',+ '2910.984375px 1275.80859375px',+ '2913.2578125px 1273.51171875px',+ '2917.98046875px 1268.765625px',+ '2922.26953125px 1264.453125px',+ '2926.9921875px 1258.125px',+ '2933.296875px 1253.37890625px',+ '2939.6015625px 1247.05078125px',+ '2948.765625px 1243.453125px',+ '2953.0546875px 1240.72265625px',+ '2953.0546875px 1240.72265625px',+ '2954.28515625px 1240.1015625px',+ '2954.28515625px 1240.1015625px',+ '2952.703125px 1245.515625px',+ '2950.6875px 1257.5390625px',+ '2938.640625px 1265.5546875px',+ '2903.0390625px 1296.4921875px',+ '2856.9140625px 1317.65625px',+ '2781.69140625px 1339.04296875px',+ '2706.46875px 1361.30859375px',+ '2639.4140625px 1373.87109375px',+ '2598.78515625px 1384.23046875px',+ '2564.53125px 1390.40625px',+ '2540.390625px 1398.15234375px',+ '2524.60546875px 1402.59375px',+ '2512.55859375px 1406.6015625px',+ '2503.37109375px 1410.17578125px',+ '2494.18359375px 1413.75px',+ '2489.87109375px 1416.45703125px',+ '2483.54296875px 1419.59765625px',+ '2480.37890625px 1425.90234375px',+ '2475.6328125px 1432.20703125px',+ '2474.05078125px 1436.49609375px',+ '2472.90234375px 1438.76953125px',+ '2471.75390625px 1441.04296875px',+ '2471.75390625px 1443.31640625px',+ '2470.171875px 1447.60546875px',+ '2470.171875px 1451.89453125px',+ '2470.171875px 1454.16796875px',+ '2470.171875px 1458.45703125px',+ '2470.171875px 1460.73046875px',+ '2471.30859375px 1463.00390625px',+ '2471.30859375px 1465.27734375px',+ '2472.4453125px 1466.21484375px',+ '2472.4453125px 1466.21484375px',+ '2468.5078125px 1466.21484375px',+ '2456.4609375px 1464.19921875px',+ '2440.67578125px 1457.73046875px',+ '2424.890625px 1450.828125px',+ '2409.10546875px 1444.359375px',+ '2389.58203125px 1439.4609375px',+ '2377.53515625px 1433.42578125px',+ '2365.48828125px 1429.39453125px',+ '2356.30078125px 1423.79296875px',+ '2347.11328125px 1420.1953125px',+ '2335.06640625px 1414.16015625px',+ '2325.87890625px 1408.98046875px',+ '2316.69140625px 1403.37890625px',+ '2307.50390625px 1397.77734375px',+ '2301.17578125px 1393.03125px',+ '2294.84765625px 1388.28515625px',+ '2288.51953125px 1383.5390625px',+ '2279.33203125px 1377.9375px',+ '2267.28515625px 1371.90234375px',+ '2249.21484375px 1359.84375px',+ '2233.4296875px 1352.94140625px',+ '2207.54296875px 1335.69140625px',+ '2190.01171875px 1323.046875px',+ '2164.125px 1305.796875px',+ '2125.06640625px 1273.79296875px',+ '2089.69921875px 1248.8203125px',+ '2046.17578125px 1207.30078125px',+ '2015.23828125px 1185.421875px',+ '2000.859375px 1176.796875px',+ '1969.921875px 1154.91796875px',+ '1946.90625px 1137.66796875px',+ '1912.3828125px 1111.79296875px',+ '1900.875px 1103.16796875px',+ '1883.34375px 1090.5234375px',+ '1877.3203125px 1086.50390625px',+ '1856.6484375px 1067.8359375px',+ '1839.5625px 1055.625px',+ '1822.03125px 1042.98046875px',+ '1804.9453125px 1030.76953125px',+ '1792.8984375px 1022.73046875px',+ '1780.8515625px 1016.6953125px',+ '1765.640625px 1007.49609375px',+ '1756.453125px 1003.8984375px',+ '1750.125px 999.15234375px',+ '1743.796875px 995.98828125px',+ '1739.484375px 993.2578125px',+ '1737.1875px 992.109375px',+ '1732.44140625px 988.9453125px',+ '1730.14453125px 986.6484375px',+ '1727.84765625px 984.3515625px',+ '1725.55078125px 983.203125px',+ '1724.40234375px 982.0546875px',+ '1723.453125px 981.10546875px',+ '1722.50390625px 979.95703125px',+ '1722.50390625px 979.95703125px',+ '1726.39453125px 983.84765625px',+ '1746.50390625px 1003.95703125px',+ '1788.234375px 1045.6875px',+ '1811.2265625px 1068.6796875px',+ '1841.4609375px 1098.9140625px',+ '1850.07421875px 1110.41015625px',+ '1861.5703125px 1119.0234375px',+ '1877.49609375px 1137.83203125px',+ '1900.3125px 1159.76953125px',+ '1914.9375px 1174.39453125px',+ '1926.2578125px 1187.71875px',+ '1940.8828125px 1202.34375px',+ '1959.69140625px 1221.15234375px',+ '1975.6171875px 1239.9609375px',+ '2005.8515625px 1270.1953125px',+ '2005.8515625px 1270.1953125px',+ '2057.07421875px 1328.44921875px',+ '2081.8125px 1356.4921875px',+ '2101.921875px 1379.484375px',+ '2116.39453125px 1395.9609375px',+ '2119.1015625px 1400.25px',+ '2121.375px 1402.5234375px',+ '2122.51171875px 1403.66015625px',+ '2122.51171875px 1404.515625px',+ '2122.51171875px 1404.515625px',+ '2121.7734375px 1404.515625px',+ '2121.7734375px 1404.515625px',+ '2117.7421875px 1402.93359375px',+ '2108.5546875px 1399.3359375px',+ '2096.5078125px 1395.3046875px',+ '2084.4609375px 1389.26953125px',+ '2072.4140625px 1385.23828125px',+ '2048.2734375px 1377.03515625px',+ '2024.1328125px 1366.39453125px',+ '1998.24609375px 1352.015625px',+ '1974.10546875px 1343.8125px',+ '1952.296875px 1332.890625px',+ '1943.109375px 1327.2890625px',+ '1939.9453125px 1324.125px',+ '1927.59375px 1315.78125px',+ '1921.265625px 1311.03515625px',+ '1918.96875px 1308.73828125px',+ '1916.671875px 1307.58984375px',+ '1916.671875px 1306.640625px',+ '1915.72265625px 1306.640625px',+ '1915.72265625px 1306.640625px',+ '1915.72265625px 1305.1640625px',+ '1914.57421875px 1303.078125px',+ '1912.9921875px 1298.765625px',+ '1908.24609375px 1292.4375px',+ '1902.2109375px 1280.390625px',+ '1897.03125px 1271.203125px',+ '1888.125px 1255.41796875px',+ '1880.0859375px 1243.37109375px',+ '1868.7421875px 1230.0234375px',+ '1856.53125px 1212.9375px',+ '1837.69921875px 1194.10546875px',+ '1817.56640625px 1171.08984375px',+ '1808.94140625px 1159.58203125px',+ '1785.92578125px 1136.56640625px',+ '1760.05078125px 1102.04296875px',+ '1748.54296875px 1090.53515625px',+ '1731.29296875px 1067.51953125px',+ '1718.6484375px 1049.98828125px',+ '1698.6796875px 1025.1328125px',+ '1691.35546875px 1017.80859375px',+ '1683.31640625px 1005.76171875px',+ '1668.94921875px 989.390625px',+ '1667.3671875px 986.2265625px',+ '1663.0546875px 978.75px',+ '1659.890625px 977.16796875px',+ '1655.578125px 971.2734375px',+ '1654.4296875px 966.9609375px',+ '1652.1328125px 964.6640625px',+ '1650.984375px 962.3671875px',+ '1649.8359375px 960.0703125px',+ '1648.6875px 957.7734375px',+ '1647.73828125px 956.82421875px',+ '1646.58984375px 954.52734375px',+ '1646.58984375px 953.578125px',+ '1645.640625px 952.62890625px',+ '1645.640625px 951.6796875px',+ '1645.640625px 951.6796875px',+ '1645.640625px 950.8125px',+ '1644.7734375px 950.8125px',+ '1644.7734375px 950.8125px',+ '1644.7734375px 950.0390625px',+ '1644.7734375px 950.0390625px',+ '1646.63671875px 951.90234375px',+ '1647.7734375px 954.17578125px',+ '1655.7890625px 966.19921875px',+ '1671.71484375px 985.0078125px',+ '1687.640625px 1003.81640625px',+ '1704.8671875px 1026.80859375px',+ '1720.79296875px 1045.6171875px',+ '1732.11328125px 1058.94140625px',+ '1740.12890625px 1070.96484375px',+ '1751.44921875px 1084.2890625px',+ '1759.46484375px 1096.3125px',+ '1767.48046875px 1108.3359375px',+ '1773.4921875px 1120.359375px',+ '1781.5078125px 1132.3828125px',+ '1787.0859375px 1141.546875px',+ '1792.6640625px 1150.7109375px',+ '1797.38671875px 1157.015625px',+ '1802.09765625px 1166.47265625px',+ '1807.25390625px 1175.63671875px',+ '1810.39453125px 1181.94140625px',+ '1813.96875px 1191.10546875px',+ '1817.109375px 1197.41015625px',+ '1820.68359375px 1206.57421875px',+ '1821.8203125px 1210.86328125px',+ '1822.95703125px 1213.13671875px',+ '1824.09375px 1217.42578125px',+ '1825.6640625px 1221.71484375px',+ '1829.23828125px 1230.87890625px',+ '1833.6796875px 1246.640625px',+ '1840.9921875px 1266.140625px',+ '1853.35546875px 1302.12890625px',+ '1868.58984375px 1336.359375px',+ '1876.76953125px 1360.4765625px',+ '1887.8203125px 1398.9609375px',+ '1891.828125px 1410.984375px',+ '1895.40234375px 1420.1484375px',+ '1895.40234375px 1423.30078125px',+ '1896.5390625px 1426.7109375px',+ '1896.5390625px 1427.84765625px',+ '1896.5390625px 1428.78515625px',+ '1896.5390625px 1428.78515625px',+ '1896.5390625px 1428.046875px',+ '1896.5390625px 1428.046875px',+ '1896.5390625px 1426.03125px',+ '1895.390625px 1423.734375px',+ '1893.80859375px 1417.40625px',+ '1890.2109375px 1408.21875px',+ '1885.74609375px 1392.43359375px',+ '1877.09765625px 1366.53515625px',+ '1865.578125px 1336.8984375px',+ '1854.92578125px 1311px',+ '1843.41796875px 1282.2421875px',+ '1832.77734375px 1258.1015625px',+ '1827.890625px 1248.33984375px',+ '1812.36328125px 1214.4375px',+ '1807.4765625px 1204.67578125px',+ '1794.38671875px 1177.3828125px',+ '1785.48046875px 1161.59765625px',+ '1777.44140625px 1149.55078125px',+ '1771.40625px 1137.50390625px',+ '1762.5px 1121.71875px',+ '1756.46484375px 1109.671875px',+ '1749.5625px 1093.88671875px',+ '1745.96484375px 1084.69921875px',+ '1739.9296875px 1072.65234375px',+ '1734.328125px 1063.46484375px',+ '1728.29296875px 1051.41796875px',+ '1720.3828125px 1041.92578125px',+ '1715.63671875px 1035.59765625px',+ '1710.890625px 1029.26953125px',+ '1706.578125px 1024.95703125px',+ '1701.83203125px 1018.62890625px',+ '1697.0859375px 1012.30078125px',+ '1692.33984375px 1005.97265625px',+ '1687.59375px 999.64453125px',+ '1684.4296875px 993.31640625px',+ '1679.68359375px 986.98828125px',+ '1675.37109375px 982.67578125px',+ '1670.625px 976.34765625px',+ '1665.87890625px 970.01953125px',+ '1662.71484375px 963.69140625px',+ '1657.96875px 957.36328125px',+ '1653.22265625px 951.03515625px',+ '1650.4921875px 946.72265625px',+ '1648.91015625px 942.41015625px',+ '1646.61328125px 941.26171875px',+ '1645.46484375px 938.96484375px',+ '1645.46484375px 938.09765625px',+ '1645.46484375px 938.09765625px',+ '1645.46484375px 938.09765625px',+ ],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ }}+ />+ </AbsoluteFill>+ );+};++export const WebMCPCloseUp = () => {+ return null;+};diff --git a/packages/brand/src/WebMCPPromo/BrowserScaleScene.tsx b/packages/brand/src/WebMCPPromo/BrowserScaleScene.tsxnew file mode 100644index 0000000000..f8d115e4cb--- /dev/null+++ b/packages/brand/src/WebMCPPromo/BrowserScaleScene.tsx@@ -0,0 +1,40 @@+import {AbsoluteFill, CanvasImage, Series} from 'remotion';++export const BrowserScaleScene = () => {+ return (+ <Series>+ <Series.Sequence durationInFrames={60} name="Browser β scale 1">+ <AbsoluteFill+ name="Scale 1 browser screenshot"+ style={{backgroundColor: '#20242a'}}+ >+ <CanvasImage+ fit="cover"+ height={1080}+ name="Browser screenshot at scale 1"+ src="https://remotion.media/webmcp-promo/browser-scale-1.jpg"+ width={1920}+ />+ </AbsoluteFill>+ </Series.Sequence>+ <Series.Sequence+ durationInFrames={60}+ name="Browser β scale 1.2"+ premountFor={30}+ >+ <AbsoluteFill+ name="Scale 1.2 browser screenshot"+ style={{backgroundColor: '#20242a'}}+ >+ <CanvasImage+ fit="cover"+ height={1080}+ name="Browser screenshot at scale 1.2"+ src="https://remotion.media/webmcp-promo/browser-scale-1-2.jpg"+ width={1920}+ />+ </AbsoluteFill>+ </Series.Sequence>+ </Series>+ );+};diff --git a/packages/brand/src/WebMCPPromo/ChatMessageScene.tsx b/packages/brand/src/WebMCPPromo/ChatMessageScene.tsxnew file mode 100644index 0000000000..e441e7b7b4--- /dev/null+++ b/packages/brand/src/WebMCPPromo/ChatMessageScene.tsx@@ -0,0 +1,39 @@+import {loadFont} from '@remotion/google-fonts/Inter';+import {AbsoluteFill, Interactive} from 'remotion';++loadFont('normal', {+ subsets: ['latin'],+ weights: ['500'],+});++export const ChatMessageScene = () => {+ return (+ <AbsoluteFill+ name="Chat message scene"+ style={{+ alignItems: 'center',+ display: 'flex',+ justifyContent: 'center',+ }}+ >+ <Interactive.Div+ name="Chat message"+ style={{+ backgroundColor: '#f3f3f3',+ border: '1px solid #dedede',+ borderRadius: 44,+ boxShadow: '0 12px 28px rgba(0, 0, 0, 0.06)',+ color: '#171717',+ fontFamily: 'Inter',+ fontSize: 84,+ fontWeight: 500,+ letterSpacing: -3,+ lineHeight: 1.05,+ padding: '52px 68px',+ }}+ >+ make this bigger+ </Interactive.Div>+ </AbsoluteFill>+ );+};diff --git a/packages/brand/src/WebMCPPromo/MacBookScene.tsx b/packages/brand/src/WebMCPPromo/MacBookScene.tsxnew file mode 100644index 0000000000..8d7a1e168d--- /dev/null+++ b/packages/brand/src/WebMCPPromo/MacBookScene.tsx@@ -0,0 +1,550 @@+import {radialProgressiveBlur} from '@remotion/effects/radial-progressive-blur';+import {loadFont} from '@remotion/google-fonts/Inter';+import {+ AbsoluteFill,+ CanvasImage,+ Easing,+ HtmlInCanvas,+ Interactive,+ Sequence,+ Solid,+ interpolate,+ useCurrentFrame,+} from 'remotion';+import {WebMCPPromo2Preview} from '../WebMCPPromo2';++loadFont('normal', {+ subsets: ['latin'],+ weights: ['400', '500', '600'],+});++export const MacBookAppScene = () => {+ return (+ <AbsoluteFill+ name="Codex and Studio app"+ style={{+ borderRadius: 19,+ overflow: 'hidden',+ }}+ >+ <CanvasImage+ fit="cover"+ height={827}+ name="Codex and Studio screenshot"+ src="https://remotion.media/webmcp-promo/codex-and-studio.png"+ width={1320}+ />+ <Interactive.Div+ name="Browser recording"+ style={{+ height: 2586,+ left: 634.6825,+ position: 'absolute',+ scale: '0.290635 0.289438',+ top: 78.5127,+ transformOrigin: '0 0',+ width: 2358,+ }}+ >+ <WebMCPPromo2Preview />+ </Interactive.Div>+ </AbsoluteFill>+ );+};++export const MacBookDesktopScene = () => {+ return (+ <Interactive.Div+ name="Desktop / screen"+ style={{+ backgroundColor: '#101114',+ border: '1px solid #35373d',+ borderRadius: 36,+ boxShadow: '0 42px 90px rgba(15, 22, 35, 0.24)',+ height: 863,+ left: 282,+ overflow: 'hidden',+ position: 'absolute',+ top: 70,+ width: 1356,+ zIndex: 1,+ }}+ >+ <CanvasImage+ fit="cover"+ height={827}+ name="Tahoe wallpaper"+ src="https://remotion.media/webmcp-promo/tahoe-light-wallpaper.jpg"+ style={{+ borderRadius: 19,+ left: 18,+ position: 'absolute',+ top: 18,+ }}+ width={1320}+ />+ <Sequence+ from={165}+ trimBefore={76}+ height={827}+ name="App"+ style={{+ boxShadow: '0 32px 90px rgba(15, 22, 35, 0.38)',+ borderRadius: 19,+ left: 137,+ overflow: 'hidden',+ scale: 0.977,+ top: 76,+ transformOrigin: '0 0',+ zIndex: 1,+ translate: '-104.8px -11px',+ }}+ width={1320}+ premountFor={30}+ >+ <MacBookAppScene />+ </Sequence>+ <Sequence+ from={13}+ durationInFrames={184}+ height={827}+ freeze={108}+ name="App"+ style={{+ boxShadow: '0 32px 90px rgba(15, 22, 35, 0.38)',+ borderRadius: 19,+ left: 137,+ overflow: 'hidden',+ scale: 0.977,+ top: 76,+ transformOrigin: '0 0',+ zIndex: 1,+ translate: '-104.8px -11px',+ }}+ width={1320}+ premountFor={30}+ >+ <MacBookAppScene />+ </Sequence>++ <Interactive.Div+ name="Camera notch"+ style={{+ backgroundColor: '#101114',+ borderRadius: '0 0 18px 18px',+ height: 56,+ left: 603,+ position: 'absolute',+ top: 0,+ width: 150,+ zIndex: 2,+ }}+ />+ </Interactive.Div>+ );+};++export const MacBookScene = () => {+ const frame = useCurrentFrame();+ return (+ <>+ <Solid+ width={1920}+ height={1080}+ color={'#ffffff'}+ style={{+ position: 'absolute',+ }}+ from={-43}+ />+ <HtmlInCanvas+ width={1920}+ height={1080}+ effects={[+ radialProgressiveBlur({+ center: [0.649, 0.332],+ height: 1.314,+ width: 0.61,+ start: 0.37,+ endBlur: interpolate(frame, [88, 161, 591, 620], [0, 16, 16, 0], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ }),+ rotation: 66.4,+ }),+ ]}+ >+ <AbsoluteFill+ name="MacBook Air scene"+ style={{+ overflow: 'hidden',+ translate: interpolate(+ frame,+ [21, 170, 591, 620],+ [+ '0px 140.400678px',+ '-862.3px -292.5px',+ '-862.3px -292.5px',+ '0px 140.400678px',+ ],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ },+ ),+ scale: interpolate(+ frame,+ [21, 170, 591, 620],+ [1.26, 6.02, 6.02, 1.26],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ output: 'perceptual-scale',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ },+ ),+ rotate: interpolate(+ frame,+ [21, 170, 591, 620],+ [+ '0deg',+ '0.945221 -0.227695 0.233905 45.778028deg',+ '0.945221 -0.227695 0.233905 45.778028deg',+ '0deg',+ ],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ },+ ),+ }}+ from={-43}+ >+ <Sequence layout="none" name="Desktop / screen">+ <MacBookDesktopScene />+ </Sequence>+ </AbsoluteFill>+ </HtmlInCanvas>+ <Interactive.Div+ name="Chat sidebar"+ style={{+ backgroundColor: '#ffffff',+ bottom: 0,+ boxSizing: 'border-box',+ display: 'flex',+ flexDirection: 'column',+ fontFamily: 'Inter',+ isolation: 'isolate',+ justifyContent: 'center',+ left: 0,+ padding: '104px 64px',+ position: 'absolute',+ top: 0,+ translate: interpolate(+ frame,+ [240, 285, 591, 609],+ ['-768px 0px', '0px 0px', '0px 0px', '-768px 0px'],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.linear,+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ },+ ),+ width: 768,+ zIndex: 20,+ }}+ >+ <Interactive.Div+ name="User message"+ style={{+ alignSelf: 'flex-end',+ backgroundColor: '#F3F3F4',+ borderRadius: 36,+ color: '#202123',+ fontSize: 54,+ fontWeight: 500,+ letterSpacing: -1.8,+ lineHeight: 1.2,+ marginLeft: 'auto',+ padding: '28px 38px',+ position: 'relative',+ translate: interpolate(frame, [281, 306], ['0px 28px', '0px 0px'], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ }),+ width: 'fit-content',+ zIndex: 2,+ opacity: interpolate(frame, [281, 306], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],+ }),+ }}+ >+ Make it bigger.+ </Interactive.Div>+ <Interactive.Div+ name="Tool call"+ style={{+ alignItems: 'center',+ color: '#8b8c90',+ display: 'flex',+ fontSize: 52,+ fontWeight: 500,+ gap: 20,+ letterSpacing: -1.6,+ marginTop: 48,+ opacity: interpolate(frame, [324, 340, 415, 439], [0, 1, 1, 0], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.linear,+ Easing.bezier(0.42, 0, 1, 1),+ ],+ }),+ position: 'relative',+ zIndex: 2,+ }}+ >+ <svg+ aria-hidden="true"+ fill="currentColor"+ height={60}+ viewBox="0 0 576 512"+ width={60}+ >+ <path d="M208 168c0-92.8 75.2-168 168-168 27.1 0 52.8 6.4 75.5 17.9 6.9 3.5 11.7 10 12.9 17.6s-1.3 15.3-6.7 20.8l-73.7 73.7 0 30.1 30.1 0 73.7-73.7c5.4-5.4 13.2-7.9 20.8-6.7s14.2 6 17.6 12.9c11.4 22.7 17.9 48.4 17.9 75.5 0 92.8-75.2 168-168 168-16.6 0-32.7-2.4-47.9-6.9L152.6 504.6c-31.2 31.2-81.9 31.2-113.1 0s-31.2-81.9 0-113.1L214.9 215.9c-4.5-15.2-6.9-31.3-6.9-47.9zM376 48c-66.3 0-120 53.7-120 120 0 16 3.1 31.3 8.8 45.2 3.6 8.9 1.6 19.2-5.3 26l-186.2 186.2 0 0c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L304.8 284.5c6.8-6.8 17.1-8.9 26-5.3 13.9 5.7 29.2 8.8 45.2 8.8 66.3 0 120-53.7 120-120 0-6.9-.6-13.7-1.7-20.3L441 201c-4.5 4.5-10.6 7-17 7l-64 0c-13.3 0-24-10.7-24-24l0-64c0-6.4 2.5-12.5 7-17l53.3-53.3C389.7 48.6 382.9 48 376 48z" />+ </svg>+ <span+ style={{+ display: 'inline-block',+ position: 'relative',+ }}+ >+ <span style={{color: '#8b8c90'}}>get_selection</span>+ <span+ aria-hidden="true"+ style={{+ backgroundClip: 'text',+ backgroundImage:+ 'linear-gradient(110deg, transparent 25%, #d5d6d8 50%, transparent 75%)',+ backgroundPosition: `${interpolate(+ frame,+ [340, 415],+ [200, -100],+ {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: Easing.linear,+ },+ )}% 50%`,+ backgroundRepeat: 'no-repeat',+ backgroundSize: '200% 100%',+ color: 'transparent',+ inset: 0,+ opacity: frame >= 340 && frame < 415 ? 1 : 0,+ position: 'absolute',+ WebkitBackgroundClip: 'text',+ }}+ >+ get_selection+ </span>+ </span>+ </Interactive.Div>+ <Interactive.Div+ name="Done message"+ style={{+ color: '#202123',+ fontSize: 52,+ fontWeight: 500,+ letterSpacing: -1.6,+ lineHeight: 1.2,+ marginTop: -62,+ position: 'relative',+ zIndex: 2,+ }}+ >+ <span+ style={{+ opacity: interpolate(frame, [450, 451], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ }),+ }}+ >+ Do+ </span>+ <span+ style={{+ opacity: interpolate(frame, [451, 453], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ }),+ }}+ >+ ne+ </span>+ <span+ style={{+ opacity: interpolate(frame, [453, 455], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ }),+ }}+ >+ .+ </span>+ </Interactive.Div>+ </Interactive.Div>+ </>+ );+};++export const MacBookLoopScene = () => {+ const frame = useCurrentFrame();+ const incomingOpacity = interpolate(frame, [775, 799], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ });++ return (+ <>+ <AbsoluteFill>+ <MacBookScene />+ </AbsoluteFill>+ <Sequence+ durationInFrames={25}+ freeze={0}+ from={775}+ layout="none"+ name="Beginning crossfade"+ >+ <AbsoluteFill style={{opacity: incomingOpacity}}>+ <MacBookScene />+ </AbsoluteFill>+ </Sequence>+ </>+ );+};diff --git a/packages/brand/src/WebMCPPromo/McpCloseUpScene.tsx b/packages/brand/src/WebMCPPromo/McpCloseUpScene.tsxnew file mode 100644index 0000000000..070c1ef24f--- /dev/null+++ b/packages/brand/src/WebMCPPromo/McpCloseUpScene.tsx@@ -0,0 +1,10 @@+import {AbsoluteFill} from 'remotion';+import {McpCloseUpPreview} from '../McpCloseUp';++export const McpCloseUpScene = () => {+ return (+ <AbsoluteFill name="McpCloseUp scene">+ <McpCloseUpPreview />+ </AbsoluteFill>+ );+};diff --git a/packages/brand/src/WebMCPPromo/WebMCPPromo.tsx b/packages/brand/src/WebMCPPromo/WebMCPPromo.tsxnew file mode 100644index 0000000000..065acef068--- /dev/null+++ b/packages/brand/src/WebMCPPromo/WebMCPPromo.tsx@@ -0,0 +1,31 @@+import {Series} from 'remotion';+import {BrowserScaleScene} from './BrowserScaleScene';+import {ChatMessageScene} from './ChatMessageScene';+import {MacBookScene} from './MacBookScene';+import {McpCloseUpScene} from './McpCloseUpScene';++export const WebMCPPromo = () => {+ return (+ <Series>+ <Series.Sequence durationInFrames={180} name="MacBook Air">+ <MacBookScene />+ </Series.Sequence>+ <Series.Sequence durationInFrames={120} name="McpCloseUp">+ <McpCloseUpScene />+ </Series.Sequence>+ <Series.Sequence durationInFrames={90} name="Chat message">+ <ChatMessageScene />+ </Series.Sequence>+ <Series.Sequence+ durationInFrames={120}+ name="Browser scale change"+ style={{+ scale: 1.747,+ translate: '-1px -106.4px',+ }}+ >+ <BrowserScaleScene />+ </Series.Sequence>+ </Series>+ );+};diff --git a/packages/brand/src/WebMCPPromo2.tsx b/packages/brand/src/WebMCPPromo2.tsxnew file mode 100644index 0000000000..d9c948f385--- /dev/null+++ b/packages/brand/src/WebMCPPromo2.tsx@@ -0,0 +1,175 @@+import {MacOSCursor} from '@remotion/mac-cursors';+import {Video} from '@remotion/media';+import {+ AbsoluteFill,+ Composition,+ Easing,+ interpolate,+ useCurrentFrame,+} from 'remotion';++export const WebMCPPromo2Preview = () => {+ const frame = useCurrentFrame();+ const cursorArrivalProgress = interpolate(frame, [107, 126], [0, 1], {+ easing: Easing.bezier(0.22, 0.75, 0.28, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ });+ const cursorHoldProgress = interpolate(frame, [126, 176], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ });+ const cursorExitProgress = interpolate(frame, [176, 219], [0, 1], {+ easing: Easing.bezier(0.32, 0.05, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ });+ const cursorX =+ frame < 126+ ? 1063.3828125 ++ (1030.5 - 1063.3828125) * cursorArrivalProgress ++ Math.sin(Math.PI * cursorArrivalProgress) * 2.9 ++ Math.sin(Math.PI * 2 * cursorArrivalProgress) *+ Math.sin(Math.PI * cursorArrivalProgress) *+ 0.45+ : frame < 176+ ? 1030.5 + (1030.500057 - 1030.5) * cursorHoldProgress+ : 1030.500057 ++ (2460.9 - 1030.500057) * cursorExitProgress ++ Math.sin(Math.PI * cursorExitProgress) * 0.5 ++ Math.sin(Math.PI * 2 * cursorExitProgress) *+ Math.sin(Math.PI * cursorExitProgress) *+ 0.7;+ const cursorY =+ frame < 126+ ? 1269.08203125 ++ (1147.1 - 1269.08203125) * cursorArrivalProgress -+ Math.sin(Math.PI * cursorArrivalProgress) * 0.8 ++ Math.cos(Math.PI * 2 * cursorArrivalProgress) *+ Math.sin(Math.PI * cursorArrivalProgress) *+ 0.35+ : frame < 176+ ? 1147.1 + (1147.100211 - 1147.1) * cursorHoldProgress+ : 1147.100211 ++ (1046.8 - 1147.100211) * cursorExitProgress -+ Math.sin(Math.PI * cursorExitProgress) * 7 ++ Math.cos(Math.PI * 2 * cursorExitProgress) *+ Math.sin(Math.PI * cursorExitProgress) *+ 0.65;++ return (+ <AbsoluteFill+ style={{+ width: 2358,+ height: 2586,+ }}+ >+ <Video+ src="https://remotion.media/webmcp-promo/interaction-recording-v2.mp4"+ style={{+ position: 'absolute',+ }}+ durationInFrames={303}+ from={-31}+ premountFor={30}+ />+ <Video+ src="https://remotion.media/webmcp-promo/interaction-recording-v2.mp4"+ style={{+ position: 'absolute',+ }}+ from={247}+ durationInFrames={135}+ trimBefore={530}+ freeze={36}+ premountFor={30}+ />+ <Video+ src="https://remotion.media/webmcp-promo/interaction-recording-v2.mp4"+ style={{+ position: 'absolute',+ }}+ from={380}+ durationInFrames={735}+ trimBefore={598}+ premountFor={30}+ />+ <MacOSCursor+ cursor={interpolate(+ frame,+ [-8, -4, -3, -2, 0, 8, 9, 60, 61, 126],+ [+ 'auto',+ 'ns-resize',+ 'auto',+ 'ns-resize',+ 'auto',+ 'ns-resize',+ 'auto',+ 'ns-resize',+ 'auto',+ 'default',+ ],+ {+ easing: [+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.step1,+ ],+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ )}+ style={{+ position: 'absolute',+ left: 0,+ top: 0,+ scale: interpolate(+ frame,+ [-21, 24, 28, 140, 143, 148],+ [3, 2.7, 3, 3, 2.7, 3],+ {+ easing: [+ Easing.step1,+ Easing.step1,+ Easing.step1,+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ Easing.step1,+ ],+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ translate: `${cursorX}px ${cursorY}px`,+ }}+ durationInFrames={254}+ />+ </AbsoluteFill>+ );+};++export const WebMCPPromo2 = () => {+ return (+ <Composition+ id="WebMCPPromo2"+ component={WebMCPPromo2Preview}+ width={2358}+ height={2586}+ fps={60}+ durationInFrames={400}+ />+ );+};diff --git a/packages/brand/src/product-discount-callout.element.tsx b/packages/brand/src/product-discount-callout.element.tsxnew file mode 100644index 0000000000..bba3d68922--- /dev/null+++ b/packages/brand/src/product-discount-callout.element.tsx@@ -0,0 +1,222 @@+import {loadFont} from '@remotion/google-fonts/Inter';+import {makeCallout} from '@remotion/shapes';+import {+ CanvasImage,+ Easing,+ Interactive,+ interpolate,+ useCurrentFrame,+ useVideoConfig,+} from 'remotion';++loadFont('normal', {+ subsets: ['latin'],+ weights: ['500', '600', '700'],+});++export const ProductDiscountCallout = () => {+ const frame = useCurrentFrame();+ const {durationInFrames} = useVideoConfig();+ const discountCallout = makeCallout({+ width: 260,+ height: 86,+ pointerLength: 24,+ pointerBaseWidth: 42,+ pointerPosition: 0.5,+ pointerDirection: 'down',+ cornerRadius: 14,+ });++ return (+ <Interactive.Div+ name="Container"+ style={{+ WebkitFontSmoothing: 'antialiased',+ color: '#161714',+ fontFamily: 'Inter',+ height: '100%',+ isolation: 'isolate',+ opacity: interpolate(+ frame,+ [0, 8, durationInFrames - 14, durationInFrames - 1],+ [0, 1, 1, 0],+ {+ easing: Easing.bezier(0.16, 1, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ overflow: 'hidden',+ position: 'relative',+ translate: interpolate(+ frame,+ [0, 16, durationInFrames - 16, durationInFrames - 1],+ ['-150px 0px', '0px 0px', '0px 0px', '110px 0px'],+ {+ easing: Easing.bezier(0.16, 1, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ width: '100%',+ willChange: 'transform, opacity',+ }}+ >+ <CanvasImage+ fit="contain"+ height={430}+ name="Product image"+ src="https://remotion.media/elements/product-discount-callout-gray-runner.png"+ style={{+ filter: 'drop-shadow(0px 28px 20px rgba(22, 23, 20, 0.18))',+ left: 50,+ position: 'absolute',+ scale: interpolate(frame, [0, 18], [0.98, 1], {+ easing: Easing.bezier(0.16, 1, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ output: 'perceptual-scale',+ }),+ top: 0,+ willChange: 'transform',+ }}+ width={800}+ />+ <Interactive.Div+ name="Discount callout"+ style={{+ height: 110,+ left: 150,+ position: 'absolute',+ rotate: interpolate(+ frame,+ [50, 57, 64, 70, 76],+ ['0deg', '10deg', '-7deg', '3deg', '0deg'],+ {+ easing: Easing.inOut(Easing.quad),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ top: 360,+ transformOrigin: '50% 100%',+ width: 260,+ scale: 1.2,+ willChange: 'transform',+ }}+ >+ <svg+ style={{+ filter: 'drop-shadow(0px 9px 8px rgba(22, 23, 20, 0.16))',+ height: '100%',+ overflow: 'visible',+ position: 'absolute',+ width: '100%',+ }}+ viewBox={`0 0 ${discountCallout.width} ${discountCallout.height}`}+ xmlns="http://www.w3.org/2000/svg"+ >+ <path d={discountCallout.path} fill="#d8ff52" />+ </svg>+ <Interactive.Div+ name="Discount text"+ style={{+ alignItems: 'center',+ display: 'flex',+ fontSize: 43,+ fontWeight: 700,+ height: 86,+ justifyContent: 'center',+ letterSpacing: -1.8,+ lineHeight: 1,+ position: 'relative',+ }}+ >+ 20% OFF+ </Interactive.Div>+ </Interactive.Div>+ <Interactive.Div+ name="Current price"+ style={{+ fontSize: 104,+ fontVariantNumeric: 'tabular-nums',+ fontWeight: 700,+ left: 150,+ letterSpacing: -6,+ lineHeight: 0.86,+ maxWidth: 270,+ overflow: 'hidden',+ position: 'absolute',+ textOverflow: 'ellipsis',+ top: 490,+ whiteSpace: 'nowrap',+ }}+ >+ $79+ </Interactive.Div>+ <Interactive.Div+ name="Original price"+ style={{+ color: '#6f736a',+ fontSize: 28,+ fontWeight: 600,+ left: 154,+ lineHeight: 1,+ maxWidth: 245,+ overflow: 'hidden',+ position: 'absolute',+ textDecoration: 'line-through',+ textDecorationThickness: 2,+ textOverflow: 'ellipsis',+ top: 590,+ whiteSpace: 'nowrap',+ }}+ >+ $99+ </Interactive.Div>+ <div+ style={{+ backgroundColor: '#c9cdc4',+ height: 118,+ left: 444,+ position: 'absolute',+ top: 493,+ width: 2,+ }}+ />+ <div+ style={{+ left: 474,+ maxWidth: 400,+ overflow: 'hidden',+ position: 'absolute',+ top: 492,+ }}+ >+ <Interactive.Div+ name="Product name"+ style={{+ fontSize: 38,+ fontWeight: 700,+ letterSpacing: -1.4,+ lineHeight: 1.05,+ }}+ >+ Everyday Runner+ </Interactive.Div>+ <Interactive.Div+ name="Product description"+ style={{+ color: '#5e6259',+ fontSize: 23,+ fontWeight: 500,+ lineHeight: 1.3,+ marginTop: 12,+ }}+ >+ Lightweight comfort for daily miles.+ </Interactive.Div>+ </div>+ </Interactive.Div>+ );+};diff --git a/packages/core/src/interpolate.ts b/packages/core/src/interpolate.tsindex 55e5bdba46..a259c6cfbf 100644--- a/packages/core/src/interpolate.ts+++ b/packages/core/src/interpolate.ts@@ -787,11 +787,19 @@ const interpolateString = ({// angle interpolates away from zero.const adjacentAxisRotation =parsed.values[0] === 0- ? index === segmentIndex- ? initiallyParsedOutputRange[index + 1]- : index === segmentIndex + 1- ? initiallyParsedOutputRange[index - 1]- : undefined+ ? index === 0+ ? initiallyParsedOutputRange.find(+ (candidate) => candidate.axisRotation,+ )+ : index === initiallyParsedOutputRange.length - 1+ ? [...initiallyParsedOutputRange]+ .reverse()+ .find((candidate) => candidate.axisRotation)+ : index === segmentIndex+ ? initiallyParsedOutputRange[index + 1]+ : index === segmentIndex + 1+ ? initiallyParsedOutputRange[index - 1]+ : undefined: undefined;const axis = adjacentAxisRotation?.axisRotation? adjacentAxisRotation.valuesdiff --git a/packages/core/src/spring/spring-utils.ts b/packages/core/src/spring/spring-utils.tsindex 4673d36b9a..bf227c65ca 100644--- a/packages/core/src/spring/spring-utils.ts+++ b/packages/core/src/spring/spring-utils.ts@@ -139,10 +139,6 @@ export function springCalculation({const frameClamped = Math.max(0, frame);const unevenRest = frameClamped % 1;for (let f = 0; f <= Math.floor(frameClamped); f++) {- if (f === Math.floor(frameClamped)) {- f += unevenRest;- }-const time = (f / fps) * 1000;animation = advance({animation,@@ -154,6 +150,17 @@ export function springCalculation({});}+ if (unevenRest > 0) {+ animation = advance({+ animation,+ now: (frameClamped / fps) * 1000,+ config: {+ ...defaultSpringConfig,+ ...config,+ },+ });+ }+calculationCache[cacheKey] = animation;return animation;}diff --git a/packages/core/src/test/interpolate.test.ts b/packages/core/src/test/interpolate.test.tsindex d891e2b034..acce6c8e64 100644--- a/packages/core/src/test/interpolate.test.ts+++ b/packages/core/src/test/interpolate.test.ts@@ -758,6 +758,90 @@ test('Allow tail spring keeps previous string segment settling while the next seexpect(yWithTail).toBeLessThan(10);});+test('Allow tail spring stays continuous when followed by a hold segment', () => {+ const easing = [+ Easing.spring({+ allowTail: true,+ damping: 200,+ durationRestThreshold: 0.02,+ mass: 1,+ stiffness: 100,+ }),+ Easing.spring({+ allowTail: true,+ damping: 200,+ durationRestThreshold: 0.02,+ mass: 1,+ stiffness: 100,+ }),+ ] as const;+ const options = {+ easing,+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ output: 'perceptual-scale',+ } as const;++ const immediatelyBeforeHold = interpolate(+ 169.999,+ [21, 170, 591],+ [1.26, 6.02, 6.02],+ options,+ );+ const atHold = interpolate(170, [21, 170, 591], [1.26, 6.02, 6.02], options);++ expect(immediatelyBeforeHold).toBeCloseTo(atHold, 5);+});++test('Allow tail axis rotation keeps its axis while settling into a hold segment', () => {+ const axisRotation = '0.945221 -0.227695 0.233905 45.778028deg';+ const easing = [+ Easing.spring({+ allowTail: true,+ damping: 200,+ durationRestThreshold: 0.02,+ mass: 1,+ stiffness: 100,+ }),+ Easing.spring({+ allowTail: true,+ damping: 200,+ durationRestThreshold: 0.02,+ mass: 1,+ stiffness: 100,+ }),+ Easing.spring({+ allowTail: true,+ damping: 200,+ durationRestThreshold: 0.02,+ mass: 1,+ stiffness: 100,+ }),+ ] as const;+ const options = {+ easing,+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ } as const;+ const atHold = interpolate(+ 170,+ [21, 170, 591, 620],+ ['0deg', axisRotation, axisRotation, '0deg'],+ options,+ );+ const afterHold = interpolate(+ 171,+ [21, 170, 591, 620],+ ['0deg', axisRotation, axisRotation, '0deg'],+ options,+ );++ expect(afterHold).toStartWith('0.945221 -0.227695 0.233905 ');+ expect(Number(afterHold.split(' ')[3].replace('deg', ''))).toBeGreaterThan(+ Number(atHold.split(' ')[3].replace('deg', '')),+ );+});+test('Clamp left test', () => {expect(interpolate(-2000, [0, 1, 1000], [Math.PI, 1, -1000], {