Skip to content

🎥 Make videos programmatically with React

Add render on web brand composition

Jonny Burgerec30569dec62
diff --git a/packages/brand/src/RenderOnWeb.tsx b/packages/brand/src/RenderOnWeb.tsx
new file mode 100644
index 0000000000..4f40846c57
--- /dev/null
+++ b/packages/brand/src/RenderOnWeb.tsx
@@ -0,0 +1,346 @@
+import {linearProgressiveBlur} from '@remotion/effects/linear-progressive-blur';
+import {MacOSCursor} from '@remotion/mac-cursors';
+import {Video} from '@remotion/media';
+import {
+ AbsoluteFill,
+ Composition,
+ Easing,
+ interpolate,
+ useCurrentFrame,
+ Solid,
+ HtmlInCanvas,
+} from 'remotion';
+
+export const RenderOnWebPreview = () => {
+ const frame = useCurrentFrame();
+
+ return (
+ <>
+ <Solid
+ width={1920}
+ height={1080}
+ color={'#1f2427'}
+ style={{position: 'absolute'}}
+ />
+ <HtmlInCanvas
+ width={1920}
+ height={1080}
+ effects={[
+ linearProgressiveBlur({
+ end: [0.09, -0.121],
+ start: [0.471, 0.38],
+ endBlur: 25,
+ }),
+ ]}
+ >
+ <AbsoluteFill
+ style={{
+ width: 1596,
+ height: 1440,
+ translate: '-310.4px -180px',
+ scale: 1.384,
+ rotate: '-0.177364 0.926222 0.332648 27.792007deg',
+ }}
+ from={-99}
+ playbackRate={0.7}
+ >
+ <Video
+ src="https://remotion.media/studio-close-ups/render-on-web-2026-09-23-15-10.mp4"
+ durationInFrames={482}
+ style={{
+ position: 'absolute',
+ }}
+ />
+ <MacOSCursor
+ cursor={interpolate(
+ frame,
+ [-91.9, 73.1, 91.1, 137.1],
+ ['auto', 'auto', 'default', 'auto'],
+ {
+ easing: [Easing.step1, Easing.step1, Easing.step1],
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ },
+ )}
+ style={{
+ position: 'absolute',
+ left: 0,
+ top: 0,
+ scale: interpolate(
+ frame,
+ [-93.9, -49.9, -43.9, 42.1, 51.1, 115.1, 124.1, 250.1, 258.1],
+ [
+ 2.424019253277923, 2.1816173279501307, 2.424019253277923,
+ 2.1816173279501307, 2.424019253277923, 2.1816173279501307,
+ 2.424019253277923, 2.1816173279501307, 2.424019253277923,
+ ],
+ {
+ easing: [
+ Easing.step1,
+ Easing.step1,
+ Easing.step1,
+ Easing.step1,
+ Easing.step1,
+ Easing.step1,
+ Easing.step1,
+ Easing.step1,
+ ],
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ },
+ ),
+ translate: interpolate(
+ frame,
+ [
+ -91.9, -90.9, -89.9, -88.9, -87.9, -86.9, -85.9, -84.9, -83.9,
+ -82.9, -81.9, -80.9, -79.9, -78.9, -77.9, -76.9, -75.9, -74.9,
+ -73.9, -72.9, -71.9, -70.9, -69.9, -68.9, -67.9, -66.9, -65.9,
+ -64.9, -63.9, -62.9, -61.9, -60.9, -59.9, -58.9, -39.9, -38.9,
+ -37.9, -36.9, -35.9, -34.9, -33.9, -32.9, -31.9, -30.9, -29.9,
+ -28.9, -27.9, -26.9, -25.9, -24.9, -23.9, -22.9, -21.9, -20.9,
+ -19.9, -18.9, -17.9, -16.9, -15.899999999999999,
+ -14.899999999999999, -13.899999999999999, -12.899999999999999,
+ -11.899999999999999, -10.899999999999999, -9.899999999999999,
+ -8.899999999999999, -7.899999999999999, -6.899999999999999,
+ -5.899999999999999, -4.899999999999999, -3.8999999999999986,
+ -2.8999999999999986, -1.8999999999999986, -0.8999999999999986,
+ 0.10000000000000142, 1.1000000000000014, 2.1000000000000014,
+ 3.1000000000000014, 4.100000000000001, 5.100000000000001,
+ 6.100000000000001, 7.100000000000001, 8.100000000000001,
+ 9.100000000000001, 10.100000000000001, 11.100000000000001,
+ 12.100000000000001, 13.100000000000001, 14.100000000000001,
+ 15.100000000000001, 16.1, 17.1, 18.1, 19.1, 20.1, 21.1, 22.1,
+ 23.1, 24.1, 25.1, 26.1, 27.1, 28.1, 29.1, 30.1, 72.1, 73.1,
+ 74.1, 75.1, 76.1, 77.1, 78.1, 79.1, 80.1, 81.1, 82.1, 83.1,
+ 84.1, 85.1, 86.1, 87.1, 88.1, 89.1, 90.1, 91.1, 92.1, 93.1,
+ 94.1, 95.1, 96.1, 97.1, 98.1, 99.1, 100.1, 136.1, 137.1,
+ 138.1, 189.1, 190.1, 191.1, 192.1, 193.1, 194.1, 195.1, 196.1,
+ 197.1, 198.1, 199.1, 200.1, 201.1, 202.1, 203.1, 204.1, 205.1,
+ 206.1, 207.1, 208.1, 209.1, 210.1, 211.1, 212.1, 213.1, 214.1,
+ 215.1, 216.1, 217.1, 218.1, 219.1, 220.1, 221.1, 222.1, 223.1,
+ 224.1, 225.1, 226.1, 227.1, 228.1, 229.1, 230.1, 231.1, 232.1,
+ 233.1, 234.1, 235.1, 236.1, 237.1, 238.1, 239.1, 240.1, 241.1,
+ 242.1, 243.1, 244.1, 245.1, 246.1,
+ ],
+ [
+ '263.8582832493852px 1438.627020344823px',
+ '263.8582832493852px 1438.627020344823px',
+ '267.83518983679426px 1437.5381054458894px',
+ '273.0335748760504px 1436.12725048988px',
+ '279.1314983100777px 1434.5933008061652px',
+ '300.46476150396506px 1428.258656741935px',
+ '345.05345940898746px 1411.9533397335576px',
+ '450.2615762963742px 1382.817764568182px',
+ '564.3987953550152px 1358.1988190270781px',
+ '818.4852509896236px 1307.1807888057444px',
+ '1058.860847722879px 1262.4216520469759px',
+ '1216.999697523639px 1243.247281000539px',
+ '1321.8479990531173px 1234.6306500611527px',
+ '1382.9408592958875px 1230.52117992083px',
+ '1383.859335341075px 1230.4548981443731px',
+ '1383.859335341075px 1230.4548981443731px',
+ '1383.7457094385775px 1230.4548981443731px',
+ '1383.4900511579583px 1230.4548981443731px',
+ '1372.4209944896697px 1240.8516682228856px',
+ '1364.192585383816px 1250.0743039755914px',
+ '1353.1045910651112px 1259.8934757164086px',
+ '1328.7507726298345px 1273.4433645892238px',
+ '1311.3944160233564px 1281.8327437236155px',
+ '1285.0710819447913px 1292.1442943752547px',
+ '1251.8828495903417px 1304.3306724181011px',
+ '1231.0514341324845px 1311.2618524704428px',
+ '1207.9380317994712px 1317.2366811767645px',
+ '1198.847959599679px 1318.2309078236167px',
+ '1193.1856021252252px 1318.335064900906px',
+ '1189.3980720419784px 1318.7327555596469px',
+ '1187.9682794355526px 1318.9316008890173px',
+ '1186.0745143939293px 1318.9316008890173px',
+ '1185.2223201251988px 1318.9316008890173px',
+ '1185.1844448243664px 1318.9316008890173px',
+ '1185.1844448243664px 1318.9316008890173px',
+ '1185.1844448243664px 1318.7990373361038px',
+ '1186.1692026460105px 1317.5775588842566px',
+ '1187.7315588053498px 1316.0057338997092px',
+ '1188.555346598456px 1314.433908915162px',
+ '1190.4585804652875px 1311.356540722524px',
+ '1193.5643551335497px 1307.0292876024146px',
+ '1193.5643551335497px 1307.0292876024146px',
+ '1197.7779823511619px 1302.285406173148px',
+ '1203.6013098541537px 1295.4678520233037px',
+ '1206.1768303107615px 1291.775010192138px',
+ '1208.2883783321715px 1288.3094201659674px',
+ '1209.1784479017344px 1285.288864924578px',
+ '1209.8033903654702px 1282.9690027485894px',
+ '1211.2805270979366px 1279.8442904299109px',
+ '1213.3826062941384px 1274.6932495166952px',
+ '1215.1722142584726px 1271.4549112955194px',
+ '1218.3158642275673px 1266.3228080327199px',
+ '1220.8345717329264px 1261.304330672418px',
+ '1225.171293678244px 1254.8939360065228px',
+ '1229.5648285748102px 1249.1463591051959px',
+ '1241.0883888530884px 1233.4659845605543px',
+ '1249.1368902799877px 1222.8987756282959px',
+ '1261.5694577782454px 1206.0063914570153px',
+ '1274.011494101711px 1188.4038453951262px',
+ '1288.5272031457541px 1167.6765870145582px',
+ '1297.2195846868053px 1154.9031418088086px',
+ '1312.6727074264522px 1131.1932034876838px',
+ '1324.3667065584764px 1114.2534751903627px',
+ '1341.8177514170359px 1088.42252002262px',
+ '1356.645931692947px 1067.4301345362248px',
+ '1374.390510132958px 1043.3414432067755px',
+ '1389.2755033601177px 1022.6236536514157px',
+ '1398.6401714909452px 1009.443048961717px',
+ '1405.8080721734898px 1001.0631386525336px',
+ '1416.5646576099107px 987.8635963124185px',
+ '1431.0424913531212px 966.8333355251909px',
+ '1440.7575060166494px 952.1661252778179px',
+ '1451.6939991320241px 934.2511079840607px',
+ '1459.695156432883px 919.4039900577335px',
+ '1467.6679072581173px 905.0587198674364px',
+ '1474.6559002617078px 892.957561251463px',
+ '1481.8143321190441px 881.4150633227686px',
+ '1489.0674522284617px 868.3102092347348px',
+ '1495.2790015649862px 853.8797196175647px',
+ '1499.6820052867606px 844.9032733202698px',
+ '1505.8462104972448px 834.0993437578085px',
+ '1511.9914780573126px 824.744144452189px',
+ '1517.218269572193px 816.1653888136351px',
+ '1522.2935598837437px 807.6434461263299px',
+ '1528.552453346309px 797.7201173082234px',
+ '1532.6429858362155px 791.2718473414958px',
+ '1538.845066347532px 781.4337379502623px',
+ '1542.964005313063px 773.5083312510685px',
+ '1547.1397572298424px 763.1399676481805px',
+ '1548.56008101106px 758.4718368205789px',
+ '1550.103499519983px 752.648509317587px',
+ '1550.5485343047646px 748.6905403805941px',
+ '1550.9556937887137px 743.1039335078052px',
+ '1551.2208208945408px 739.8655952866292px',
+ '1551.561698602033px 735.8129380975552px',
+ '1551.8362945330684px 732.8586646326227px',
+ '1551.8552321834848px 729.071134549376px',
+ '1552.1014216388958px 726.078985783611px',
+ '1552.1014216388958px 722.6986151843132px',
+ '1552.1677034153524px 720.1988453293704px',
+ '1552.28132931785px 718.8448033246096px',
+ '1552.28132931785px 717.7274819500519px',
+ '1552.28132931785px 716.6575047015347px',
+ '1552.28132931785px 716.2219387419614px',
+ '1552.28132931785px 716.1745946159207px',
+ '1552.28132931785px 716.1745946159207px',
+ '1551.6753245045304px 715.8715922092609px',
+ '1547.0450689777613px 715.3981509488551px',
+ '1546.5148147661068px 715.1898367942765px',
+ '1544.270703191783px 713.4096976551506px',
+ '1539.7067294414708px 710.038795881061px',
+ '1534.7640026828337px 705.6357921592867px',
+ '1531.7339786162363px 702.4732045397756px',
+ '1528.6755480740146px 698.8277068346506px',
+ '1525.787556385539px 695.2579597311906px',
+ '1522.8995646970632px 691.3568037454463px',
+ '1518.0136508896749px 685.0979102828811px',
+ '1515.580162811189px 681.5376320046291px',
+ '1513.5917095174843px 677.7595707465905px',
+ '1511.0067202356684px 673.3565670248162px',
+ '1511.0067202356684px 673.3565670248162px',
+ '1508.6963268848879px 668.6505608963821px',
+ '1507.4653796078328px 665.0713449677139px',
+ '1506.6510606399347px 661.3027525348833px',
+ '1506.196557029945px 659.1912045134733px',
+ '1505.1076421310115px 655.195360275648px',
+ '1503.441128894383px 651.4172990176094px',
+ '1501.992398637541px 647.2131406252055px',
+ '1500.4679177790345px 643.775957074659px',
+ '1499.7577558884257px 641.7117531792895px',
+ '1499.1233445994817px 639.9884269914122px',
+ '1498.4037138836648px 638.1609437262457px',
+ '1497.996554399716px 637.3276871079314px',
+ '1497.9113349728427px 637.2045923802259px',
+ '1497.9113349728427px 637.2045923802259px',
+ '1497.9113349728427px 637.2614053314746px',
+ '1497.9113349728427px 637.5549389129262px',
+ '1497.9113349728427px 637.5549389129262px',
+ '1493.8302713081443px 639.9978958166204px',
+ '1462.7914622759372px 659.2196109890976px',
+ '1462.7914622759372px 659.2196109890976px',
+ '1385.071344967714px 712.1976880285116px',
+ '1312.6443009508278px 766.7191835768486px',
+ '1229.5364220991858px 833.7868725259406px',
+ '1154.0982916661187px 893.1658754060416px',
+ '1091.6513894185878px 941.1633503859861px',
+ '1028.721577085443px 987.7783768855455px',
+ '971.1700574705085px 1028.7689212114835px',
+ '909.2628782598402px 1071.0377569405173px',
+ '819.4131958600192px 1133.153250305764px',
+ '768.3288838622285px 1169.4188508528518px',
+ '715.6916845303068px 1206.8964610265784px',
+ '675.5628032983074px 1234.8484330409394px',
+ '646.0863504254395px 1255.8597561777508px',
+ '626.7415405252567px 1268.8509843632871px',
+ '607.5292941779876px 1280.829048251555px',
+ '587.3417588342824px 1292.2863267533764px',
+ '567.0784728889122px 1303.3932587224976px',
+ '544.3911676902642px 1314.4717842159944px',
+ '520.9368876497587px 1324.8496166440905px',
+ '500.9955417614645px 1334.1574718236693px',
+ '485.78860847722876px 1342.7456962874314px',
+ '471.15927353068815px 1352.1008955930508px',
+ '455.65880666500084px 1362.800668078223px',
+ '442.7054537802969px 1371.388892541985px',
+ '426.8262339062849px 1380.9050618761423px',
+ '409.4509396493904px 1390.8946724707057px',
+ '399.9631767908573px 1395.5628032983072px',
+ '388.23130235800045px 1399.4450216336352px',
+ '377.1811833401281px 1401.93532266337px',
+ '365.9416878180933px 1403.5450229487499px',
+ '357.8837175659859px 1404.7759702258052px',
+ '353.79318507607934px 1405.0410973316323px',
+ '346.2465313852102px 1405.173660884546px',
+ '340.06338852430986px 1405.173660884546px',
+ '335.5467589000381px 1405.9216980759873px',
+ '329.58139901892446px 1408.7244703375898px',
+ '324.7712358132011px 1411.9249332579334px',
+ '318.8816265337524px 1416.0249345730479px',
+ '314.78162521863777px 1419.755651705046px',
+ '310.85206275726927px 1423.5999947395414px',
+ '308.4375123291995px 1426.4311734767684px',
+ '307.06453267402253px 1428.0787490629807px',
+ '305.8714606977998px 1429.3381028156602px',
+ '302.8414366312024px 1431.0898354791618px',
+ '299.8492878654375px 1433.040413472034px',
+ '294.9728428832573px 1435.8337169084284px',
+ '290.7781533160615px 1437.8505766777573px',
+ '286.3562119438709px 1439.517089914386px',
+ '283.44928260497903px 1440.3976906587409px',
+ '282.47399360854297px 1440.7101618906086px',
+ '281.39454753481766px 1441.145727850182px',
+ '280.7033232946251px 1441.4108549560094px',
+ '280.50447796525464px 1441.5244808585066px',
+ '280.49500914004653px 1441.5244808585066px',
+ ],
+ {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ },
+ ),
+ }}
+ />
+ </AbsoluteFill>
+ </HtmlInCanvas>
+ </>
+ );
+};
+
+export const RenderOnWeb = () => {
+ return (
+ <Composition
+ id={'RenderOnWeb'}
+ component={RenderOnWebPreview}
+ width={1920}
+ height={1080}
+ fps={60}
+ durationInFrames={250}
+ />
+ );
+};
diff --git a/packages/brand/src/Root.tsx b/packages/brand/src/Root.tsx
index d7de023ab0..cd68421072 100644
--- a/packages/brand/src/Root.tsx
+++ b/packages/brand/src/Root.tsx
@@ -113,6 +113,7 @@ import {PitchCorrection} from './PitchCorrection';
import {PreviewToolbarIcons} from './PreviewToolbarIcons';
import {QuickSwitcher} from './QuickSwitcher';
import {RenderModalCodec} from './RenderModalCodec';
+import {RenderOnWeb} from './RenderOnWeb';
import {ProductHuntLogo} from './ScalingLogo';
import {SfxShowcase, sfxShowcaseDurationInFrames} from './Sfx/SfxShowcase';
import {ShipCard, shipCardDurationInFrames} from './ShipCard';
@@ -783,6 +784,7 @@ export const Scene11: React.FC<{platform: EndCardPlatform}> = ({platform}) => {
<Composition3DRotation />
<KeyframeMove />
<PitchCorrection />
+ <RenderOnWeb />
</Folder>
<Folder name="StudioAssets">