Skip to content

🎥 Make videos programmatically with React

final PR

MehmetAdemi26609571fc9f
diff --git a/packages/example/.eslintrc b/packages/example/.eslintrc
new file mode 100644
index 0000000000..9ec5ca74c5
--- /dev/null
+++ b/packages/example/.eslintrc
@@ -0,0 +1,3 @@
+{
+ "extends": "@remotion"
+}
diff --git a/packages/example/.prettierrc.js b/packages/example/.prettierrc.js
new file mode 100644
index 0000000000..32eb24f3bf
--- /dev/null
+++ b/packages/example/.prettierrc.js
@@ -0,0 +1,14 @@
+module.exports = {
+ singleQuote: true,
+ bracketSpacing: false,
+ useTabs: true,
+ overrides: [
+ {
+ files: ['*.yml'],
+ options: {
+ singleQuote: false,
+ },
+ },
+ ],
+ plugins: [require.resolve('prettier-plugin-organize-imports')],
+};
diff --git a/packages/example/freeze.mp4 b/packages/example/freeze.mp4
new file mode 100644
index 0000000000..62e819549d
Binary files /dev/null and b/packages/example/freeze.mp4 differ
diff --git a/packages/example/gif.mp4 b/packages/example/gif.mp4
new file mode 100644
index 0000000000..81f37dabb2
Binary files /dev/null and b/packages/example/gif.mp4 differ
diff --git a/packages/example/jest.config.js b/packages/example/jest.config.js
new file mode 100644
index 0000000000..e178ecdc01
--- /dev/null
+++ b/packages/example/jest.config.js
@@ -0,0 +1,6 @@
+module.exports = {
+ preset: 'ts-jest',
+ testEnvironment: 'node',
+ testPathIgnorePatterns: ['dist'],
+ testTimeout: 240000,
+};
diff --git a/packages/example/package.json b/packages/example/package.json
index 367805e048..1fad66c0c5 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -1,7 +1,7 @@
{
"name": "@remotion/example",
"private": true,
- "version": "3.2.30",
+ "version": "3.2.32",
"description": "",
"license": "SEE LICENSE IN LICENSE.md",
"author": "Jonny Burger",
@@ -27,18 +27,18 @@
"@babel/preset-react": "7.12.13",
"@mdx-js/react": "^1.6.21",
"@react-three/drei": "^7.22.7",
- "@remotion/babel-loader": "3.2.30",
- "@remotion/bundler": "3.2.30",
- "@remotion/cli": "3.2.30",
- "@remotion/eslint-config": "3.2.30",
- "@remotion/eslint-plugin": "3.2.30",
- "@remotion/gif": "3.2.30",
- "@remotion/lambda": "3.2.30",
- "@remotion/lottie": "3.2.30",
- "@remotion/media-utils": "3.2.30",
- "@remotion/paths": "3.2.30",
- "@remotion/renderer": "3.2.30",
- "@remotion/three": "3.2.30",
+ "@remotion/babel-loader": "3.2.32",
+ "@remotion/bundler": "3.2.32",
+ "@remotion/cli": "3.2.32",
+ "@remotion/eslint-config": "3.2.32",
+ "@remotion/eslint-plugin": "3.2.32",
+ "@remotion/gif": "3.2.32",
+ "@remotion/lambda": "3.2.32",
+ "@remotion/lottie": "3.2.32",
+ "@remotion/media-utils": "3.2.32",
+ "@remotion/paths": "3.2.32",
+ "@remotion/renderer": "3.2.32",
+ "@remotion/three": "3.2.32",
"@types/express": "^4.17.11",
"@types/node": "^16.7.5",
"@types/react": "18.0.1",
@@ -49,11 +49,11 @@
"mdx-loader": "3.0.2",
"polished": "^4.0.5",
"prettier": "^2.0.5",
- "remotion": "3.2.30",
+ "remotion": "3.2.32",
"styled-components": "^5.1.1",
"ts-unused-exports": "^7.0.1",
"typescript": "^4.7.0",
- "vitest": "^0.18.0"
+ "vitest": "0.18.0"
},
"devDependencies": {
"@types/babel__core": "^7.1.12",
diff --git a/packages/example/public/22khz.wav b/packages/example/public/22khz.wav
new file mode 100644
index 0000000000..f72c557011
Binary files /dev/null and b/packages/example/public/22khz.wav differ
diff --git a/packages/example/public/balloons.json b/packages/example/public/balloons.json
new file mode 100644
index 0000000000..3455bdbabf
--- /dev/null
+++ b/packages/example/public/balloons.json
@@ -0,0 +1 @@
+{"v":"5.7.13","fr":60,"ip":0,"op":190,"w":1400,"h":1400,"nm":"Halloween4","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"syes2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":81,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":126,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[23.598,4.338],[-16.144,12.513],[-14.406,-3.486],[-5.783,-9.989],[5.551,-10.333],[13.41,0.622]],"o":[[13.06,-15.846],[12.84,-9.954],[11.369,2.748],[5.304,9.168],[-6.815,12.675],[-27.865,-1.285]],"v":[[-60.747,25.943],[-16.719,-16.816],[26.301,-32.49],[50.867,-9.75],[55.196,21.422],[18.174,35.354]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1016.351,648.256],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.588,-5.228],[-0.529,-9.563],[-2.631,-4.201],[-26.415,-19.799],[-0.591,17.05],[11.075,13.562]],"o":[[-8.602,5.235],[0.295,5.194],[17.663,28.208],[8.121,-15.849],[0.646,-18.677],[-11.088,-13.558]],"v":[[-28.393,-48.557],[-43.638,-24.21],[-38.246,-10.278],[32.714,58.061],[43.521,7.485],[31.676,-44.504]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[868.17,595.655],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"mouth Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":126,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":165,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.317,2.572],[-55.276,18.748],[-3.219,58.553],[13.379,-15.2],[1.988,11.645],[11.29,-14.437],[2.065,14.99],[13.311,-16.182],[4.956,16.23],[8.899,-17.054],[6.334,14.712],[1.491,-17.313],[7.875,10.834],[-1.962,-12.524]],"o":[[22.414,49.865],[55.282,-18.752],[-13.38,15.196],[-1.989,-11.659],[-11.301,14.427],[-6.001,-13.214],[-11.037,17.796],[-9.974,-12.898],[-4.967,18.206],[-8.578,-13.169],[-4.002,17.253],[-7.88,-10.845],[1.974,12.524],[-6.802,-0.536]],"v":[[-120.666,3.985],[16.998,59.13],[120.665,-77.878],[80.514,-32.268],[74.554,-67.213],[40.654,-23.918],[28.508,-66.494],[-8.082,-15.423],[-30.68,-59.515],[-51.564,-6.359],[-73.981,-48.265],[-82.225,3.686],[-105.874,-28.833],[-99.963,8.752]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[546.778,620.971],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"eyes Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":45,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-7.396,4.729],[-19.62,-29.593],[4.757,-6.698],[3.418,0.553],[3.092,1.532],[20.959,-9.584],[5.658,5.583],[-3.349,8.47]],"o":[[31.578,-20.161],[3.851,5.791],[-2.607,3.689],[-3.404,-0.546],[-18.538,-9.155],[-7.691,3.517],[-5.026,-4.942],[3.335,-8.474]],"v":[[-38.476,-16.268],[50.238,0.056],[52.279,22.001],[42.187,26.309],[32.713,22.262],[-29.641,29.118],[-52.01,30.845],[-53.511,6.705]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[593.479,470.1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.389,-0.306],[10.089,-32.457],[-5.582,-2.562],[-2.79,2.184],[-2.306,2.765],[-20.077,3.744],[-3.576,7.127],[4.767,4.621]],"o":[[-31.53,1.33],[-1.975,6.351],[3.057,1.398],[2.789,-2.191],[13.781,-16.557],[7.361,-1.367],[3.173,-6.334],[-4.775,-4.616]],"v":[[24.553,-38.597],[-47.578,19.949],[-44.355,37.505],[-34.765,35.475],[-27.572,27.482],[27.256,0.095],[46.764,-10.272],[42.601,-29.199]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[440.244,517.803],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"mouth2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":126,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":165,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[11.047,0.956],[0.35,-0.144],[0.901,-1.041],[0.453,-0.618],[6.272,-1.931],[2.02,4.882],[0.962,4.226],[1.458,0.346],[11.15,-8.673],[-0.171,2.531],[1.951,12.662],[3.18,1.45],[13.157,-7.11],[0.926,1.658],[-0.976,17.147],[1.614,1.247],[12.07,-2.924],[0.343,1.504],[-0.344,14.485],[7.543,12.506],[-22.114,-32.028],[-40.746,1.47],[-15.773,3.874],[-20.658,19.937]],"o":[[-0.372,0.196],[-1.807,0.783],[-0.48,0.584],[-3.758,5.235],[-6.691,2.037],[-1.635,-3.985],[-1.457,-0.333],[-12.07,7.424],[-2.192,1.704],[0.879,-13.049],[-3.256,-1.326],[-12.922,7.606],[-1.69,0.913],[-8.038,-14.387],[-1.649,-1.216],[-11.946,3.538],[-1.422,0.347],[-3.057,-14.063],[-9.542,-10.892],[-13.918,42.095],[22.116,32.017],[15.849,-0.563],[26.731,-6.576],[-11.239,0.395]],"v":[[92.391,39.28],[91.312,39.895],[89.958,40.758],[88.632,42.688],[73.251,56.833],[59.978,46.164],[56.337,33.77],[51.953,32.747],[19.356,61.315],[14.203,58.736],[12.404,19.979],[2.697,15.895],[-36.016,38.817],[-40.639,37.952],[-45.022,-12.052],[-49.907,-15.751],[-85.63,-4.227],[-88.88,-5.848],[-86.097,-49.696],[-111.915,-84.732],[-98.622,33.936],[2.875,83.262],[50.47,75.383],[125.833,40.211]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[902.385,716.475],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"bag Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[700,856,0],"to":[0,-26,0],"ti":[0,26,0]},{"t":45,"s":[700,700,0]}],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[8.615,2.583]],"o":[[-8.625,-2.576],[0,0]],"v":[[12.924,3.867],[-12.924,-3.867]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[600.913,847.655],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.526,16.058]],"o":[[-3.854,-15.354],[0,0]],"v":[[3.306,23.664],[-3.306,-23.663]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[637.784,816.297],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[1.099,64.303]],"o":[[8.364,-64.161],[0,0]],"v":[[-33.274,90.516],[32.175,-90.516]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[704.139,727.834],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-17.84,-0.216]],"o":[[12.329,-13.789],[0,0]],"v":[[-24.055,10.932],[24.055,-10.716]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[631.898,872.32],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-72.516,-64.379],[37.905,51.972],[-22.914,63.997],[-5.819,-16.495]],"o":[[-59.257,-20.067],[-37.908,-51.984],[-3.878,17.642],[57.508,162.522]],"v":[[104.068,147.081],[-49.833,42.111],[-81.154,-147.081],[-71.512,-95.847]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.741000007181,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[427.43,668.832],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.866,-6.495],[0.807,-32.509],[-9.164,1.806],[-6.173,-2.765],[-5.894,5.98],[-2.047,7.553],[-2.082,-1.941],[-6.777,11.777],[5.942,8.88],[9.147,5.476],[5.053,9.556]],"o":[[-19.38,31.237],[8.961,-0.348],[7.598,-1.507],[5.99,2.686],[5.901,-5.981],[3.091,0.23],[7.722,7.206],[6.781,-11.763],[-5.926,-8.869],[-9.142,-5.468],[-10.992,6.035]],"v":[[-27.619,-40.056],[-58.87,58.621],[-34.688,41.174],[-17.901,51.129],[2.76,44.279],[14.133,22.897],[20.859,27.953],[52.089,16.019],[51.238,-17.908],[26.651,-37.659],[3.237,-58.622]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.573000021542,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[641.742,907.073],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.706,-1.381],[21.725,-6.242],[38.98,-2.594],[62.052,20.984],[-17.443,-15.86],[-18.995,-4.791],[-31.264,-1.11],[-15.794,2.006],[-8.282,1.082],[-8.244,1.997],[-14.345,4.732],[-12.963,34.525]],"o":[[-20.445,10.397],[-38.118,10.974],[-65.457,4.355],[14.777,20.992],[18.635,6.042],[30.146,7.602],[15.774,0.559],[8.275,-1.041],[8.346,-1.093],[14.579,-3.52],[16.955,-25.265],[-2.679,1.45]],"v":[[183.763,-52.337],[120.274,-27.564],[3.519,-8.568],[-191.806,-29.773],[-143.147,25.428],[-86.776,41.949],[5.462,56.126],[52.876,54.071],[77.711,51.585],[102.617,46.854],[145.888,33.926],[191.806,-56.686]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[558.172,763.575],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":2,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.748,-0.652],[19.6,-12.887],[20.15,-8.227],[41.021,-7.313],[73.322,12.96],[-8.701,-28.13],[-39.795,-2.524],[-20.201,0.653],[-21.125,2.373],[-39.801,16.604],[-30.398,23.646],[0.989,16.027],[8.238,24.08]],"o":[[-17.766,15.702],[-18.505,12.164],[-39.189,16.01],[-74.343,13.262],[0.8,26.411],[37.653,12.489],[20.094,1.275],[21.101,-0.669],[42.017,-4.706],[34.875,-14.564],[0.812,-15.688],[-1.539,-25.339],[-0.742,0.664]],"v":[[220.406,-106.169],[164.566,-62.793],[106.49,-32.732],[-14.375,1.923],[-238.266,2.747],[-224.433,84.76],[-107.675,106.689],[-47.182,107.517],[15.997,104.673],[139.501,72.388],[237.441,14.158],[237.277,-33.444],[222.604,-108.169]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[542.572,550.63],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 8","np":2,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[9.862,-7.646],[15.162,-9.48],[14.464,-6.695],[49.288,-2.895],[6.052,-24.753],[-35.318,7.701],[-36.026,14.11],[-34.972,21.448],[-17.442,14.956],[37.615,7.42]],"o":[[-14.238,11.061],[-13.668,8.54],[-45.751,21.155],[-11.582,20.861],[35.689,-0.331],[37.475,-8.161],[37.547,-14.702],[19.531,-11.998],[-25.779,-21.221],[-9.365,8.622]],"v":[[66.742,-67.805],[22.932,-36.272],[-19.341,-13.46],[-163.892,23.572],[-190.781,92.214],[-83.967,80.871],[25.104,43.829],[135.152,-7.765],[190.781,-48.005],[95.693,-92.214]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[503.056,384.674],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 9","np":2,"cix":2,"bm":0,"ix":9,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-10.58,3.984],[-17.896,10.432],[-2.689,1.697],[5.496,-1.099],[24.656,-19.862]],"o":[[19.116,-7.21],[2.745,-1.604],[-5.334,0.838],[-27.679,5.571],[10.803,-3.068]],"v":[[-15.85,10.457],[39.872,-15.909],[47.944,-20.956],[31.738,-18.081],[-47.943,20.956]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[449.376,312.701],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 10","np":2,"cix":2,"bm":0,"ix":10,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[68.181,130.869],[-122.563,24.684],[-7.989,-131.206],[60.967,-5.235]],"o":[[-101.686,-195.127],[193.949,-39.041],[11.013,180.573],[-78.881,6.774]],"v":[[-173.28,128.982],[-34.783,-271.169],[263.953,-48.596],[104.049,303.437]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.573000021542,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[515.896,565.783],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 11","np":2,"cix":2,"bm":0,"ix":11,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-6.657,-16.803],[-5.001,-17.299],[20.816,-16.044],[21.149,-15.557],[4.214,-39.152],[-25.488,-28.314]],"o":[[-10.899,14.536],[6.588,16.657],[7.369,25.545],[-20.827,16.059],[-30.987,22.781],[-4.209,39.162],[0,0]],"v":[[55.865,-207.393],[48.834,-155.371],[75.162,-109.187],[44.99,-40.176],[-22.044,0.364],[-78.322,99.446],[-44.264,207.393]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[584.175,1089.951],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 12","np":2,"cix":2,"bm":0,"ix":12,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"bag2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.78],"y":[17.742]},"o":{"x":[0.318],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.722],"y":[1]},"o":{"x":[0.385],"y":[0.02]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[700,856,0],"to":[0,-26,0],"ti":[0,26,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":45,"s":[700,700,0],"to":[0,0,0],"ti":[0,0,0]},{"t":180,"s":[700,700,0]}],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[2.9,-19.847],[4.72,-18.521],[28.38,8.632],[28.418,9.365],[25.324,-26.216],[-8.571,-47.938]],"o":[[-18.212,0.265],[-2.865,19.662],[-7.008,27.384],[-28.382,-8.639],[-41.631,-13.695],[-25.315,26.209],[0,0]],"v":[[164.64,-110.647],[129.617,-77.27],[129.253,-14.616],[63.143,8.512],[-22.154,-27.992],[-129.267,-7.969],[-156.069,110.647]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[639.495,1092.547],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-20.659,-6.039],[-4.555,2.608]],"o":[[15.608,15.265],[4.925,1.443],[0,0]],"v":[[-35.229,-17.546],[20.205,15.021],[35.229,14.938]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[792.133,965.742],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[9.858,3.47],[17.243,-8.645],[3.813,-4.953],[-4.074,-4.7],[-5.792,1.062],[-5.826,0.742],[0.351,-6.849],[-6.644,-2.504],[-11.081,3.28],[-1.257,-5.475],[-5.786,-0.838],[-4.259,7.714],[-3.318,-3.5],[-4.519,1.972],[1.36,7.403],[0,0]],"o":[[-17.656,7.846],[-5.682,2.852],[-3.827,4.947],[3.738,4.317],[5.757,-1.085],[-3.366,6.056],[-0.329,6.843],[10.737,4.06],[-1.065,5.54],[1.257,5.503],[8.964,1.288],[1.545,4.493],[3.311,3.497],[7.166,-3.106],[0,0],[-16.289,-4.706]],"v":[[7.867,-55.071],[-44.488,-30.333],[-59.843,-19.486],[-60.737,-2.43],[-44.482,1.496],[-27.445,-2.773],[-34.425,16.51],[-24.717,33.315],[7.585,23.906],[6.72,40.64],[17.966,52.221],[37.813,36.867],[44.305,49.521],[57.646,53.1],[63.232,32.915],[49.705,-40.336]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.779999976065,0.685999971278,0.745000023935,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[770.767,992.317],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.264,11.84],[1.93,23.118],[13.493,13.685],[10.346,3.167],[10.326,3.541],[9.885,5.272],[8.182,6.179],[9.425,15.3],[4.871,24.347],[-2.315,-37.671],[-9.584,-12.916],[-13.692,-9.651],[-13.864,-14.488],[-3.757,-8.097],[-1.353,-9.519],[1.306,-18.467],[-26.827,8.697]],"o":[[2.445,-22.702],[-1.67,-20.133],[-7.701,-7.809],[-10.435,-3.181],[-10.566,-3.634],[-8.994,-4.796],[-14.117,-10.653],[-12.745,-20.771],[-7.976,37.612],[4.699,15.124],[10.112,13.633],[15.966,11.257],[6.079,6.352],[4.026,8.652],[2.631,18.466],[22.761,1.02],[-1.841,-11.668]],"v":[[94.696,116.621],[104.932,49.041],[79.299,-2.088],[52.858,-18.147],[21.387,-26.947],[-9.246,-40.487],[-35.476,-56.409],[-70.828,-96.2],[-96.852,-164.882],[-104.546,-50.295],[-82.933,-7.962],[-46.646,27.699],[2.062,59.445],[16.928,81.162],[24.142,108.549],[20.342,163.862],[95.658,152.094]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[805.701,815.953],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.329,13.641],[9.652,21.99],[14.942,14.567],[23.131,3.833],[23.324,10.143],[10.106,6],[7.831,5.805],[8.464,19.542],[-1.854,13.761],[1.209,-2.508],[4.967,-18.82],[-21.015,-26.528],[-16.592,-8.916],[-10.532,-3.988],[-10.339,-2.717],[-8.402,-6.437],[-5.482,-7.296],[0.996,-20.573],[1.085,-22.073],[-1.237,-8.089],[-33.45,25.94]],"o":[[0.611,-24.158],[-8.601,-19.587],[-17.017,-16.578],[-24.862,-4.119],[-10.786,-4.696],[-8.367,-4.954],[-16.715,-12.387],[-5.654,-13.036],[-1.25,2.456],[-8.415,17.233],[4.816,34.22],[11.961,15.124],[9.947,5.338],[10.016,3.796],[10.03,2.639],[7.179,5.493],[11.934,15.908],[-1.072,22.11],[-0.432,8.306],[33.945,-12.147],[1.992,-13.4]],"v":[[151.85,98.104],[140.515,27.526],[103.603,-23.641],[42.474,-55.63],[-30.21,-74.097],[-60.946,-91.103],[-85.444,-106.918],[-123.064,-155.331],[-128.78,-196.073],[-132.51,-188.67],[-152.461,-134.365],[-114.882,-39.909],[-71.821,-5.051],[-41.181,9.263],[-10.438,18.056],[17.976,30.501],[36.964,50.554],[54.675,106.408],[43.662,171.444],[44.961,196.073],[147.811,138.576]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[865.211,768.92],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.133,6.468],[13.458,13.41],[19.985,11.116],[22.265,2.892],[20.796,9.233],[15.698,16.217],[11.492,19.469],[4.891,15.829],[9.775,-16.896],[0.494,-1.182],[-1.766,-12.098],[-5.778,-9.742],[-9.164,-7.687],[-9.294,-5.403],[-10.175,-4.744],[-11.995,-2.999],[-11.789,-1.695],[-11.116,-5.249],[-13.994,-16.227],[-6.645,-19.882],[1.36,-23.68],[1.038,-7.88],[-18.534,23.1],[-10.297,16.849]],"o":[[-8.45,-17.434],[-16.281,-16.206],[-19.957,-11.088],[-22.315,-2.896],[-20.562,-9.117],[-15.498,-16.007],[-8.354,-14.17],[-11.59,14.028],[0.514,0.849],[-4.74,11.277],[1.663,11.521],[6.176,10.377],[8.307,6.984],[9.721,5.64],[11.239,5.263],[11.562,2.879],[12.077,1.741],[19.16,9.061],[13.363,15.488],[7.487,22.406],[-0.46,7.958],[21.516,-17.779],[13.672,-16.99],[-2.308,-6.856]],"v":[[181.453,64.063],[147.906,17.972],[94.651,-25.354],[29.998,-42.552],[-35.953,-57.333],[-89.656,-98.924],[-131.466,-151.152],[-151.08,-196.35],[-183.114,-149.854],[-182.888,-146.776],[-187.669,-111.379],[-175.359,-79.835],[-153.479,-52.909],[-126.657,-34.851],[-97.213,-18.415],[-62.176,-6.3],[-27.167,0.372],[7.698,9.807],[57.099,48.54],[88.339,101.555],[95.454,172.628],[93.044,196.35],[153.629,134.95],[189.435,84.136]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[930.297,702.905],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.638,0.429],[42.793,6.726],[20.377,8.319],[15.643,12.377],[6.397,6.883],[5.804,8.142],[2.37,9.052],[-1.739,9.062],[0.707,-3.755],[-4.604,-10.68],[-8.299,-8.275],[-8.148,-6.966],[-9.192,-4.871],[-9.055,-3.645],[-10.814,-3.006],[-21.983,-0.186],[-33.222,-6.242],[19.264,21.159],[4.926,-0.498],[20.032,7.089],[15.272,36.222],[44.228,-50.773],[-11.176,-16.865],[-8.725,-9.545],[-10.181,-8.896],[-10.072,-5.378],[-11.096,-2.356],[-22.313,-4.26],[-10.031,-4.634],[-9.096,-6.915],[-13.836,-16.505],[-6.843,-18.04],[12.276,55.008]],"o":[[-42.745,-6.956],[-21.715,-3.4],[-18.17,-7.413],[-7.309,-5.798],[-6.766,-7.255],[-5.331,-7.471],[-2.335,-8.935],[0.72,-3.765],[-2.164,11.575],[4.726,10.961],[7.599,7.553],[7.969,6.801],[8.663,4.59],[10.435,4.201],[21.132,5.877],[33.738,0.285],[-7.597,-26.735],[-4.857,0.931],[-21.276,2.16],[-34.775,-12.308],[-72.595,-8.368],[5.846,19.534],[7.201,10.882],[9.164,10.021],[8.635,7.547],[10.078,5.39],[22.237,4.741],[10.792,2.067],[10.326,4.785],[16.989,12.881],[12.188,14.523],[38.1,-66.58],[-2.61,-0.584]],"v":[[175.772,-9.752],[46.589,-13.695],[-16.663,-31.75],[-67.94,-59.034],[-88.454,-78.177],[-108.3,-100.672],[-120.358,-126.349],[-120.343,-153.529],[-114.806,-152.451],[-111.797,-120.175],[-92.699,-92.411],[-70.09,-69.758],[-44.362,-52.122],[-17.466,-40.714],[14.404,-29.864],[79.317,-20.073],[181.054,-18.445],[140.597,-90.672],[125.937,-88.461],[63.853,-96.357],[-21.815,-169.169],[-195.92,-98.466],[-170.866,-43.57],[-146.642,-13.438],[-117.788,15.206],[-89.923,35.37],[-57.847,46.526],[9.546,56.433],[41.038,65.951],[70.078,83.933],[117.143,128.541],[145.874,177.536],[183.644,-8.216]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[980.015,599.237],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":2,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-68.084,139.48],[-148.947,-62.867],[129.952,-161.749],[66.604,45.96]],"o":[[59.198,-121.251],[151.696,64.031],[-96.433,120.042],[-54.781,-37.818]],"v":[[-206.553,-119.03],[99.096,-247.12],[144.686,138.579],[-168.034,264.027]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.779999976065,0.685999971278,0.745000023935,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[939.241,699.276],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 8","np":2,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/packages/example/public/bangers.woff2 b/packages/example/public/bangers.woff2
new file mode 100644
index 0000000000..7e4a7fa22c
Binary files /dev/null and b/packages/example/public/bangers.woff2 differ
diff --git a/packages/example/public/corrupted.mp4 b/packages/example/public/corrupted.mp4
new file mode 100644
index 0000000000..70ff2ac2b5
Binary files /dev/null and b/packages/example/public/corrupted.mp4 differ
diff --git a/packages/example/public/framer.webm b/packages/example/public/framer.webm
new file mode 100644
index 0000000000..7b7c0095dc
Binary files /dev/null and b/packages/example/public/framer.webm differ
diff --git a/packages/example/public/framermp4withoutfileextension b/packages/example/public/framermp4withoutfileextension
new file mode 100644
index 0000000000..9934affe34
Binary files /dev/null and b/packages/example/public/framermp4withoutfileextension differ
diff --git a/packages/example/public/giphy.gif b/packages/example/public/giphy.gif
new file mode 100644
index 0000000000..9faaf009da
Binary files /dev/null and b/packages/example/public/giphy.gif differ
diff --git a/packages/example/public/logo.png b/packages/example/public/logo.png
new file mode 100644
index 0000000000..a35f38446a
Binary files /dev/null and b/packages/example/public/logo.png differ
diff --git a/packages/example/public/music.mp3 b/packages/example/public/music.mp3
new file mode 100644
index 0000000000..e80bf73822
Binary files /dev/null and b/packages/example/public/music.mp3 differ
diff --git a/packages/example/public/nested/mp4.png b/packages/example/public/nested/mp4.png
new file mode 100644
index 0000000000..2d36a37e67
Binary files /dev/null and b/packages/example/public/nested/mp4.png differ
diff --git a/packages/example/public/reverse-loader.json b/packages/example/public/reverse-loader.json
new file mode 100644
index 0000000000..f5157a25a4
--- /dev/null
+++ b/packages/example/public/reverse-loader.json
@@ -0,0 +1 @@
+{"v":"5.6.10","fr":60,"ip":0,"op":120,"w":576,"h":576,"nm":"loop","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"O","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[288,288,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-26.51,0],[0,0],[0,-26.51],[26.51,0],[0,0],[0,26.51]],"o":[[0,0],[26.51,0],[0,26.51],[0,0],[-26.51,0],[0,-26.51]],"v":[[-24,-48],[24,-48],[72,0],[24,48],[-24,48],[-72,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":48,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.14901960784313725,0.14901960784313725,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"d":[{"n":"d","nm":"dash","v":{"a":0,"k":135,"ix":1}},{"n":"g","nm":"gap","v":{"a":0,"k":62,"ix":2}},{"n":"o","nm":"offset","v":{"a":1,"k":[{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.33],"y":[0]},"t":60,"s":[0]},{"t":102,"s":[197]}],"ix":7}}],"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"O","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.33],"y":[0]},"t":60,"s":[0]},{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[113]},{"t":95,"s":[180]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.33,"y":0},"t":60,"s":[420,144,0],"to":[133,95,0],"ti":[0,0,0]},{"i":{"x":0.67,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[479,370,0],"to":[-53,72,0],"ti":[221,0,0]},{"t":102,"s":[156,430.99999999999994,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-20,32],[-20,-32],[20,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.14901960784313725,0.14901960784313725,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Path 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.33],"y":[0]},"t":60,"s":[0]},{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[113]},{"t":95,"s":[180]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.33,"y":0},"t":60,"s":[156,432,0],"to":[-86.99,-49.979,0],"ti":[-55.026,59.948,0]},{"i":{"x":0.67,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[98.063,203.125,0],"to":[55.026,-59.948,0],"ti":[-219.01,-2.021,0]},{"t":102,"s":[420.125,144.25,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-100,-100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-20,32],[-20,-32],[20,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.14901960784313725,0.14901960784313725,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/packages/example/remotion.config.js b/packages/example/remotion.config.js
new file mode 100644
index 0000000000..9bfa0a6d5f
--- /dev/null
+++ b/packages/example/remotion.config.js
@@ -0,0 +1,4 @@
+import {Config} from 'remotion';
+
+Config.Rendering.setConcurrency(require('os').cpus().length);
+Config.Output.setOverwriteOutput(true);
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
new file mode 100644
index 0000000000..4b94295e33
--- /dev/null
+++ b/packages/example/remotion.config.ts
@@ -0,0 +1,5 @@
+import {Config} from 'remotion';
+import {webpackOverride} from './src/webpack-override';
+
+Config.Output.setOverwriteOutput(true);
+Config.Bundling.overrideWebpackConfig(webpackOverride);
diff --git a/packages/example/renderall.sh b/packages/example/renderall.sh
new file mode 100644
index 0000000000..cf6f4a74ad
--- /dev/null
+++ b/packages/example/renderall.sh
@@ -0,0 +1,8 @@
+compositions=($(npx remotion compositions src/index.tsx -q))
+
+
+for composition in "${compositions[@]}"
+do
+ echo $composition
+ npx remotion render src/index.tsx $composition $composition.mp4
+done
diff --git a/packages/example/src/22KhzAudio/index.tsx b/packages/example/src/22KhzAudio/index.tsx
new file mode 100644
index 0000000000..1a7516056f
--- /dev/null
+++ b/packages/example/src/22KhzAudio/index.tsx
@@ -0,0 +1,16 @@
+import {Audio, Sequence} from 'remotion';
+import {AbsoluteFill, staticFile} from 'remotion';
+
+export const TwentyTwoKHzAudio = () => {
+ const twenty = staticFile('22khz.wav');
+ return (
+ <AbsoluteFill>
+ <Sequence from={1} durationInFrames={30}>
+ <Audio src={staticFile('music.mp3')} />
+ </Sequence>
+ <Sequence from={31} durationInFrames={100}>
+ <Audio src={twenty} />
+ </Sequence>
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/AudioTesting/Base64.tsx b/packages/example/src/AudioTesting/Base64.tsx
new file mode 100644
index 0000000000..23714e471e
--- /dev/null
+++ b/packages/example/src/AudioTesting/Base64.tsx
@@ -0,0 +1,9 @@
+import {Audio} from 'remotion';
+
+const Base64Audio: React.FC = () => {
+ return (
+ <Audio src="data:audio/mpeg;base64,/+MYxAAJcAV8AAgAABn//////+/gQ5BAMA+D4Pg+BAQBAEAwD4Pg+D4EBAEAQDAPg++hYBH///hUFQVBUFREDQNHmf///////+MYxBUGkAGIMAAAAP/29Xt6lUxBTUUzLjEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxDUAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV" />
+ );
+};
+
+export default Base64Audio;
diff --git a/packages/example/src/AudioTestingMute/index.tsx b/packages/example/src/AudioTestingMute/index.tsx
new file mode 100644
index 0000000000..d99335ec71
--- /dev/null
+++ b/packages/example/src/AudioTestingMute/index.tsx
@@ -0,0 +1,54 @@
+import React from 'react';
+import {
+ Audio,
+ Sequence,
+ useCurrentFrame,
+ useVideoConfig,
+ Video,
+} from 'remotion';
+import movie from '../resources/framer-music.mp4';
+import music from '../resources/sound1.mp3';
+
+const AudioTestingMute: React.FC = () => {
+ const frame = useCurrentFrame();
+ const {fps} = useVideoConfig();
+
+ /**
+ * Interleave music with the movie by muting each other
+ * at certain points.
+ */
+ const getMuteState = React.useCallback(
+ (type: 'movie' | 'music') => {
+ const muteParts = [
+ {start: Number(fps), end: 2 * fps},
+ {start: 4 * fps, end: 5 * fps},
+ ];
+ const toMute = muteParts.some(
+ (mp) => frame >= mp.start && frame <= mp.end
+ );
+ return type === 'movie' ? toMute : !toMute;
+ },
+ [fps, frame]
+ );
+
+ return (
+ <div>
+ <Video src={movie} muted={getMuteState('movie')} />
+ <Sequence from={20} durationInFrames={200}>
+ <Sequence from={20} durationInFrames={200}>
+ <Sequence from={20} durationInFrames={200}>
+ <Sequence from={20} durationInFrames={200}>
+ <Sequence from={20} durationInFrames={200}>
+ <Audio src={music} muted={getMuteState('music')} />
+ <Audio src={music} muted={getMuteState('music')} />
+ <Audio src={music} muted={getMuteState('music')} />
+ </Sequence>
+ </Sequence>
+ </Sequence>
+ </Sequence>
+ </Sequence>
+ </div>
+ );
+};
+
+export default AudioTestingMute;
diff --git a/packages/example/src/AudioVisualization/index.tsx b/packages/example/src/AudioVisualization/index.tsx
new file mode 100644
index 0000000000..ebc4508455
--- /dev/null
+++ b/packages/example/src/AudioVisualization/index.tsx
@@ -0,0 +1,241 @@
+import {useAudioData, visualizeAudio} from '@remotion/media-utils';
+import {transparentize} from 'polished';
+import React from 'react';
+import {
+ AbsoluteFill,
+ Audio,
+ Img,
+ interpolate,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+import styled from 'styled-components';
+import DropDots from '../DropDots/DropDots';
+import music from '../resources/sound1.mp3';
+
+const Background = styled(Img)`
+ height: 100%;
+ width: 120%;
+ margin-left: -15%;
+`;
+
+const Blur = styled(AbsoluteFill)`
+ backdrop-filter: blur(5px);
+`;
+
+const FullSize = styled(AbsoluteFill)`
+ display: flex;
+ justify-content: center;
+ align-items: center;
+`;
+
+const Orb = styled.div`
+ height: 400px;
+ width: 400px;
+ border-radius: 200px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 70px;
+ font-family: --apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
+ Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+ font-weight: bold;
+ text-transform: lowercase;
+ flex-direction: column;
+`;
+
+const Text: React.FC<{
+ color: string;
+ transform: string;
+ blur: number;
+}> = ({color, transform, blur}) => {
+ const frame = useCurrentFrame();
+ const cool = (offset: number) => Math.sin((frame + offset) / 10);
+ return (
+ <AbsoluteFill
+ style={{
+ textAlign: 'center',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ color,
+ transform,
+ filter: `blur(${blur}px)`,
+ }}
+ >
+ <div
+ style={{
+ transform: `translateY(${cool(0) * 8}px)`,
+ }}
+ >
+ Remotion
+ </div>
+ <div
+ style={{
+ transform: `translateY(${cool(5) * 8}px)`,
+ }}
+ >
+ Nation
+ </div>
+ </AbsoluteFill>
+ );
+};
+
+const AudioVisualization: React.FC = () => {
+ const frame = useCurrentFrame();
+ const {width, height, fps} = useVideoConfig();
+ const audioData = useAudioData(music);
+
+ if (!audioData) {
+ return null;
+ }
+
+ const visualization = visualizeAudio({
+ fps,
+ frame,
+ audioData,
+ numberOfSamples: 32,
+ });
+
+ const scale =
+ 1 +
+ interpolate(visualization[1], [0.14, 1], [0, 0.6], {
+ extrapolateLeft: 'clamp',
+ });
+
+ const backgroundScale =
+ 1 + interpolate(visualization[visualization.length - 1], [0, 0.7], [0, 1]);
+
+ const circlesOut = visualization.slice(4);
+
+ const rgbEffect = interpolate(
+ visualization[Math.floor(visualization.length / 3)],
+ [0, 0.5],
+ [0, 30]
+ );
+
+ const dropStart = 1989;
+ const dropEnd = 3310;
+
+ const dayInterpolation = [dropStart - 5, dropStart, dropEnd, dropEnd + 5];
+
+ const day = interpolate(frame, dayInterpolation, [1, 0, 0, 1], {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ });
+ const night = interpolate(frame, dayInterpolation, [0, 1, 1, 0], {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ });
+
+ const orbRgb = Math.round(interpolate(day, [0, 1], [30, 255]));
+ const textRgb = Math.round(interpolate(night, [0, 1], [0, 255]));
+ const orbBackground = `rgb(${orbRgb}, ${orbRgb}, ${orbRgb})`;
+ const textColor = `rgba(${textRgb}, ${textRgb}, ${textRgb}, 0.8)`;
+
+ const onlySeconds = circlesOut.filter((_x, i) => i % 2 === 0);
+ const circlesToUse = [...onlySeconds, ...onlySeconds];
+ return (
+ <div style={{flex: 1}}>
+ <AbsoluteFill>
+ <AbsoluteFill>
+ <Background
+ style={{transform: `scale(${backgroundScale})`, opacity: night}}
+ src="https://fast-cdn.dynamicwallpaper.club/wallpapers%2Feq8ggec3apr%2Fthumbs%2F800%2F0.jpg?generation=1614257969409557&alt=media"
+ />
+ </AbsoluteFill>
+ <AbsoluteFill>
+ <Background
+ style={{transform: `scale(${backgroundScale})`, opacity: day}}
+ src="https://fast-cdn.dynamicwallpaper.club/wallpapers%2Feq8ggec3apr%2Fthumbs%2F800%2F4.jpg?generation=1614257969529252&alt=media"
+ />
+ </AbsoluteFill>
+ </AbsoluteFill>
+ <Blur />
+ <DropDots
+ opacity={night}
+ volume={interpolate(visualization[1], [0, 0.24], [0, 1], {
+ extrapolateLeft: 'clamp',
+ })}
+ />
+
+ <Audio src={music} />
+ <FullSize>
+ {circlesToUse.map((v, i) => {
+ const leftNeighbour =
+ i === circlesToUse.length - 1
+ ? circlesToUse[0]
+ : circlesToUse[i + 1];
+ const rightNeighbour =
+ i === 0
+ ? circlesToUse[circlesToUse.length - 1]
+ : circlesToUse[i - 1];
+ const a = (i / circlesToUse.length) * Math.PI * 2;
+ const offset =
+ (300 +
+ Math.log(
+ interpolate(
+ (v + leftNeighbour + rightNeighbour) / 3,
+ [0.0, 1],
+ [0, 1],
+ {
+ extrapolateLeft: 'clamp',
+ }
+ ) * 600
+ ) *
+ 6) *
+ day;
+ const x = Math.sin(a) * offset;
+ const y = Math.cos(a) * offset;
+ return (
+ <div
+ style={{
+ backgroundColor: 'white',
+ height: 20,
+ width: 20,
+ borderRadius: 10,
+ position: 'absolute',
+ left: x + width / 2,
+ top: y + height / 2,
+ }}
+ />
+ );
+ })}
+ <Orb
+ style={{
+ transform: `scale(${scale})`,
+ backgroundColor: orbBackground,
+ boxShadow: `0 0 50px ${transparentize(0.5, textColor)}`,
+ }}
+ >
+ <Text
+ blur={2}
+ color="rgba(255, 0, 0, 0.3)"
+ transform={`translateY(${-rgbEffect}px) translateX(${
+ rgbEffect * 2
+ }px)`}
+ />
+ <Text
+ blur={2}
+ color="rgba(0, 255, 0, 0.3)"
+ transform={`translateX(${rgbEffect * 3}px) translateY(${
+ rgbEffect * 3
+ }px)`}
+ />
+ <Text
+ blur={2}
+ color="rgba(0, 0, 255, 0.3)"
+ transform={`translateX(${-rgbEffect * 3}px)`}
+ />
+ <Text
+ blur={0}
+ color={textColor}
+ transform={`translateY(${rgbEffect}px)`}
+ />
+ </Orb>
+ </FullSize>
+ </div>
+ );
+};
+
+export default AudioVisualization;
diff --git a/packages/example/src/BetaText/index.tsx b/packages/example/src/BetaText/index.tsx
new file mode 100644
index 0000000000..4f45cabd82
--- /dev/null
+++ b/packages/example/src/BetaText/index.tsx
@@ -0,0 +1,160 @@
+import {mix} from 'polished';
+import React from 'react';
+import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
+import styled from 'styled-components';
+
+const BRAND_GRADIENT = ['#5851db', '#405de6'];
+const solidBrand = mix(0.5, BRAND_GRADIENT[0], BRAND_GRADIENT[1]);
+const Label = styled.span<{
+ outline: boolean;
+}>`
+ font-size: 120px;
+ font-family: ${(props) =>
+ props.outline ? 'Altero Outline' : 'Altero-Regular'};
+ text-align: center;
+ transform: scaleX(1);
+ line-height: 1em;
+ margin-left: 10px;
+ margin-right: 10px;
+ display: inline-block;
+`;
+
+const lines = 7;
+const Row: React.FC<{
+ videoWidth: number;
+ i: number;
+ text: string;
+ zoom: number;
+}> = ({videoWidth, i, text, zoom}) => {
+ const frame = useCurrentFrame();
+ const videoConfig = useVideoConfig();
+ const progress = spring({
+ config: {
+ damping: 30,
+ mass: 1,
+ stiffness: 40,
+ overshootClamping: false,
+ },
+ fps: videoConfig.fps,
+ from: 0,
+ to: 1,
+ frame,
+ });
+ const posX = interpolate(progress, [0, 1], [1, 0]);
+
+ const dir = i % 2 === 0 ? -1 : 1;
+ const color = mix(
+ Math.min(1, (lines - i - 1) / lines),
+ BRAND_GRADIENT[0],
+ BRAND_GRADIENT[1]
+ );
+ return (
+ <div
+ style={{
+ whiteSpace: 'nowrap',
+ width: 10000,
+ marginLeft: -(10000 - videoWidth) / 2 + posX * 1000 * dir,
+ textAlign: 'center',
+ color,
+ opacity: 1 - zoom,
+ }}
+ >
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline={false} style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ <Label outline style={{transform: `scale(${progress})`}}>
+ {text}
+ </Label>
+ </div>
+ );
+};
+
+type Props = {
+ word1: string;
+};
+
+const BetaText = ({word1}: Props): React.ReactNode => {
+ const videoConfig = useVideoConfig();
+ const frame = useCurrentFrame();
+
+ const progress = spring({
+ config: {
+ damping: 30,
+ mass: 1,
+ stiffness: 40,
+ overshootClamping: false,
+ },
+ fps: videoConfig.fps,
+ from: 0,
+ to: 1,
+ frame: Math.max(0, frame - 70),
+ });
+ const scale = interpolate(progress, [0, 0.4], [1, 10]);
+ const backgroundColor = mix(1 - progress, '#fff', solidBrand);
+
+ return (
+ <div
+ style={{
+ width: videoConfig.width,
+ height: videoConfig.height,
+ display: 'flex',
+ transform: `scale(${scale})`,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor,
+ flex: 1,
+ }}
+ >
+ {new Array(17)
+ .fill(true)
+ .map((_, i) => i)
+ .map((key) => {
+ return (
+ <Row
+ key={key}
+ zoom={progress}
+ text={
+ key === 7
+ ? 'CET'
+ : key === 5
+ ? '5pm'
+ : key === 3
+ ? word1 ?? 'TOMORROW'
+ : key === 1
+ ? 'ANYSTICKER'
+ : 'BETA'
+ }
+ i={key}
+ videoWidth={videoConfig.width}
+ />
+ );
+ })}
+ </div>
+ </div>
+ );
+};
+
+export default BetaText;
diff --git a/packages/example/src/BlackGradients/Blob.tsx b/packages/example/src/BlackGradients/Blob.tsx
new file mode 100644
index 0000000000..86ab3b7422
--- /dev/null
+++ b/packages/example/src/BlackGradients/Blob.tsx
@@ -0,0 +1,21 @@
+import React, {useState} from 'react';
+import {random} from 'remotion';
+
+export const SvgBlob: React.FC<{
+ style?: React.SVGProps<HTMLOrSVGElement>['style'];
+ gradient: [string, string];
+ d: string;
+}> = ({style, gradient, d}) => {
+ const [id] = useState(() => random(null));
+ return (
+ <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" style={style}>
+ <defs>
+ <linearGradient id={String(id)} gradientTransform="rotate(90)">
+ <stop offset="5%" stopColor={gradient[0]} />
+ <stop offset="95%" stopColor={gradient[1]} />
+ </linearGradient>
+ </defs>
+ <path fill={`url(#${id})`} d={d} transform="translate(100 100)" />
+ </svg>
+ );
+};
diff --git a/packages/example/src/ColorInterpolation/index.tsx b/packages/example/src/ColorInterpolation/index.tsx
new file mode 100644
index 0000000000..f1fd137fd2
--- /dev/null
+++ b/packages/example/src/ColorInterpolation/index.tsx
@@ -0,0 +1,18 @@
+import React from 'react';
+import {interpolateColors, useCurrentFrame} from 'remotion';
+
+export const ColorInterpolation: React.FC = () => {
+ const frame = useCurrentFrame();
+ return (
+ <div
+ style={{
+ flex: 1,
+ backgroundColor: interpolateColors(
+ frame,
+ [0, 50, 100],
+ ['red', 'yellow', 'blue']
+ ),
+ }}
+ />
+ );
+};
diff --git a/packages/example/src/Context/index.tsx b/packages/example/src/Context/index.tsx
new file mode 100644
index 0000000000..16e90f6278
--- /dev/null
+++ b/packages/example/src/Context/index.tsx
@@ -0,0 +1,18 @@
+import {createContext, useContext} from 'react';
+import {AbsoluteFill} from 'remotion';
+
+type RegressionTestContext = {
+ hi: () => 'hithere';
+};
+
+export const MyCtx = createContext<RegressionTestContext>({
+ hi: () => {
+ throw new Error('context not provided');
+ },
+});
+
+export const WrappedInContext: React.FC = () => {
+ const value = useContext(MyCtx);
+
+ return <AbsoluteFill>{value.hi()}</AbsoluteFill>;
+};
diff --git a/packages/example/src/CorruptVideo/index.tsx b/packages/example/src/CorruptVideo/index.tsx
new file mode 100644
index 0000000000..1a5df6d731
--- /dev/null
+++ b/packages/example/src/CorruptVideo/index.tsx
@@ -0,0 +1,14 @@
+import {interpolate, OffthreadVideo, staticFile} from 'remotion';
+
+const CorruptVideo: React.FC = () => {
+ return (
+ <OffthreadVideo
+ volume={(f) =>
+ interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
+ }
+ src={staticFile('corrupted.mp4')}
+ />
+ );
+};
+
+export default CorruptVideo;
diff --git a/packages/example/src/DropDots/DropDots.tsx b/packages/example/src/DropDots/DropDots.tsx
new file mode 100644
index 0000000000..8760ed85af
--- /dev/null
+++ b/packages/example/src/DropDots/DropDots.tsx
@@ -0,0 +1,159 @@
+import {linearGradient} from 'polished';
+import {
+ Img,
+ interpolate,
+ random,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+
+const gradients = [
+ ['#845ec2', '#ff5e78'],
+ ['rgb(40, 150, 114)', '#e6dd3b'],
+ ['#e48900', '#be0000'],
+ ['#fff600', '#f48b2a'],
+ ['#23689b', '#487e95'],
+ ['#9d0391', '#120078'],
+];
+
+const DropDots: React.FC<{
+ opacity: number;
+ volume: number;
+}> = ({opacity, volume}) => {
+ const frame = useCurrentFrame();
+
+ const cycle = 15;
+ const iteration = Math.floor(frame / cycle);
+ const {height, width} = useVideoConfig();
+ const dots = new Array(process.env.NODE_ENV === 'development' ? 45 : 45)
+ .fill(true)
+ .map((_x, i) => {
+ const startX = random(`x-${i}-${iteration}`) * width;
+ const startY = random(`y-${i}-${iteration}`) * height;
+ const startRotation = random(`rotation-${i}-${iteration}`) * 360;
+ return {
+ startX,
+ endX:
+ startX +
+ interpolate(random(`x-end-${i}-${iteration}`), [0, 1], [-600, 600]),
+ startY,
+ endY:
+ startY +
+ interpolate(random(`y-end-${i}-${iteration}`), [0, 1], [-600, 600]),
+ startRotation,
+ endRotation:
+ startRotation +
+ interpolate(random(`rotatad-${i}`), [0, 1], [-180, 180]),
+ size: interpolate(
+ random(`size-${i}-${iteration}`),
+ [0, 0.9, 0.901, 1],
+ [40, 40, 160, 160]
+ ),
+
+ background:
+ gradients[
+ Math.floor(random(`color-${i}-${iteration}`) * gradients.length)
+ ],
+ opacity: interpolate(
+ random(`opacity-${i}-${iteration}`),
+ [0, 1],
+ [0.83, 0.95]
+ ),
+ gradId: random(`gradient-${i}-${iteration}`),
+ hasShine: random(`shine-${i}`) > 0.6,
+ shineOpacity: random(`shine-opacity-${i}-${iteration}`) * 0.7,
+ };
+ });
+ const progress = interpolate(frame % cycle, [0, cycle], [0, 1]);
+ return (
+ <div style={{width, height, opacity}}>
+ {dots.map((d) => {
+ const left = interpolate(progress, [0, 1], [d.startX, d.endX]);
+ const top = interpolate(progress, [0, 1], [d.startY, d.endY]);
+ const rotate = interpolate(
+ progress,
+ [0, 1],
+ [d.startRotation, d.endRotation]
+ );
+ return (
+ <div
+ style={{
+ position: 'absolute',
+ left,
+ top,
+ transform: `rotate(${rotate}deg)`,
+ }}
+ >
+ <svg
+ style={{
+ width: d.size * 2,
+ height: d.size * 40,
+ position: 'absolute',
+ top: 0,
+ }}
+ preserveAspectRatio="none"
+ viewBox="0 0 200 4000"
+ >
+ <defs>
+ <filter id="f1" x="0" y="0">
+ <feGaussianBlur in="SourceGraphic" stdDeviation="10" />
+ </filter>
+ <linearGradient id={`${d.gradId}`}>
+ <stop
+ stopColor={d.background[0]}
+ stopOpacity={d.shineOpacity * volume}
+ offset={0}
+ />
+ <stop
+ stopColor={d.background[1]}
+ stopOpacity={0.11 * volume}
+ offset={1}
+ />
+ </linearGradient>
+ </defs>
+ {d.hasShine ? (
+ <path
+ d="M 50 50 L 0 4000 L 200 4000 z"
+ fill={`url(#${d.gradId})`}
+ filter="url(#f1)"
+ />
+ ) : null}
+ </svg>
+ <div
+ style={{
+ height: d.size,
+ width: d.size,
+ borderRadius: d.size / 2,
+ opacity: d.opacity,
+ zIndex: d.size,
+ ...linearGradient({
+ colorStops: d.background,
+ }),
+ boxShadow: `0 0 60px ${
+ linearGradient({
+ colorStops: d.background,
+ }).backgroundColor
+ }`,
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <Img
+ style={{
+ height: (d.size / 3) * 2,
+ width: (d.size / 3) * 2,
+ marginLeft: d.size * 0.05,
+ opacity: 0.55,
+ }}
+ src="https://github.com/remotion-dev/logo/blob/main/monochromatic/element-0.png?raw=true"
+ />
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ );
+};
+
+export default DropDots;
diff --git a/packages/example/src/ErrorOnFrame10/index.tsx b/packages/example/src/ErrorOnFrame10/index.tsx
new file mode 100644
index 0000000000..4f771519ed
--- /dev/null
+++ b/packages/example/src/ErrorOnFrame10/index.tsx
@@ -0,0 +1,10 @@
+import {AbsoluteFill, useCurrentFrame} from 'remotion';
+
+export const ErrorOnFrame10: React.FC = () => {
+ const frame = useCurrentFrame();
+ if (frame === 10) {
+ const a = new Array(0.5);
+ console.log(a);
+ }
+ return <AbsoluteFill />;
+};
diff --git a/packages/example/src/Fonts/index.tsx b/packages/example/src/Fonts/index.tsx
new file mode 100644
index 0000000000..3fabb26aef
--- /dev/null
+++ b/packages/example/src/Fonts/index.tsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import {AbsoluteFill, continueRender, delayRender, staticFile} from 'remotion';
+
+const waitForFont = delayRender();
+const font = new FontFace(
+ `Bangers`,
+ `url(${staticFile('bangers.woff2')}) format('woff2')`
+);
+
+font
+ .load()
+ .then(() => {
+ document.fonts.add(font);
+ continueRender(waitForFont);
+ })
+ .catch((err) => console.log('Error loading font', err));
+
+export const FontDemo: React.FC = () => {
+ return (
+ <AbsoluteFill
+ style={{
+ justifyContent: 'center',
+ alignItems: 'center',
+ fontFamily: 'Bangers',
+ fontSize: 300,
+ }}
+ >
+ <h1>Font Demo</h1>
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/Framer/index.tsx b/packages/example/src/Framer/index.tsx
new file mode 100644
index 0000000000..69d4de317b
--- /dev/null
+++ b/packages/example/src/Framer/index.tsx
@@ -0,0 +1,29 @@
+import {random, useCurrentFrame} from 'remotion';
+
+export function selectColor(color: string, frame: number): number {
+ return Math.floor((random(`${color}-${frame}`) * 255) % 255);
+}
+
+export const Framer: React.FC = () => {
+ const frame = useCurrentFrame();
+
+ const red = selectColor('red', frame);
+ const green = selectColor('green', frame);
+ const blue = selectColor('blue', frame);
+
+ return (
+ <div
+ style={{
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ background: 'white',
+ flex: 1,
+ borderTop: `100px solid rgb(${red}, ${green}, ${blue})`,
+ paddingBottom: 100,
+ }}
+ >
+ <h1 style={{fontSize: 120}}>{frame} 😁</h1>
+ </div>
+ );
+};
diff --git a/packages/example/src/FramerJs/index.jsx b/packages/example/src/FramerJs/index.jsx
new file mode 100644
index 0000000000..98ef11e419
--- /dev/null
+++ b/packages/example/src/FramerJs/index.jsx
@@ -0,0 +1,29 @@
+import {useCurrentFrame, random} from 'remotion';
+
+function selectColor(color, frame) {
+ return Math.floor((random(`${color}-${frame}`) * 255) % 255);
+}
+
+export const Framer = () => {
+ const frame = useCurrentFrame();
+
+ const red = selectColor('red', frame);
+ const green = selectColor('green', frame);
+ const blue = selectColor('blue', frame);
+
+ return (
+ <div
+ style={{
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ background: 'white',
+ flex: 1,
+ borderTop: `100px solid rgb(${red}, ${green}, ${blue})`,
+ paddingBottom: 100,
+ }}
+ >
+ <h1 style={{fontSize: 120}}>{frame}</h1>
+ </div>
+ );
+};
diff --git a/packages/example/src/Freeze/FreezeExample.tsx b/packages/example/src/Freeze/FreezeExample.tsx
new file mode 100644
index 0000000000..49e66eec0a
--- /dev/null
+++ b/packages/example/src/Freeze/FreezeExample.tsx
@@ -0,0 +1,24 @@
+import React from 'react';
+import {Freeze, Series, staticFile, Video} from 'remotion';
+
+export const FreezeExample: React.FC = () => {
+ const video = staticFile('framermp4withoutfileextension');
+
+ return (
+ <Series>
+ <Series.Sequence durationInFrames={25}>
+ <Freeze frame={0}>
+ <Video src={video} />
+ </Freeze>
+ </Series.Sequence>
+ <Series.Sequence durationInFrames={50}>
+ <Video src={video} />
+ </Series.Sequence>
+ <Series.Sequence durationInFrames={50}>
+ <Freeze frame={126}>
+ <Video src={video} />
+ </Freeze>
+ </Series.Sequence>
+ </Series>
+ );
+};
diff --git a/packages/example/src/GifTest/index.tsx b/packages/example/src/GifTest/index.tsx
new file mode 100644
index 0000000000..4b378cc8eb
--- /dev/null
+++ b/packages/example/src/GifTest/index.tsx
@@ -0,0 +1,35 @@
+import {Gif} from '@remotion/gif';
+import {Sequence, staticFile, useVideoConfig} from 'remotion';
+
+const GifTest: React.FC = () => {
+ const {width, height} = useVideoConfig();
+ const giphy = staticFile('giphy.gif');
+
+ return (
+ <div style={{flex: 1, backgroundColor: 'black'}}>
+ <Sequence from={0} durationInFrames={50}>
+ <Gif src={giphy} width={width} height={height} fit="fill" />
+ </Sequence>
+
+ <Sequence from={50} durationInFrames={50}>
+ <Gif
+ src="https://media.giphy.com/media/xT0GqH01ZyKwd3aT3G/giphy.gif"
+ width={width}
+ height={height}
+ fit="cover"
+ />
+ </Sequence>
+
+ <Sequence from={100} durationInFrames={50}>
+ <Gif
+ src="https://media.giphy.com/media/3o72F7YT6s0EMFI0Za/giphy.gif"
+ width={width}
+ height={height}
+ fit="contain"
+ />
+ </Sequence>
+ </div>
+ );
+};
+
+export default GifTest;
diff --git a/packages/example/src/IframeTest/index.tsx b/packages/example/src/IframeTest/index.tsx
new file mode 100644
index 0000000000..9d6875fa59
--- /dev/null
+++ b/packages/example/src/IframeTest/index.tsx
@@ -0,0 +1,9 @@
+import React from 'react';
+import {IFrame, useVideoConfig} from 'remotion';
+
+const IFrameTest: React.FC = () => {
+ const {width, height} = useVideoConfig();
+ return <IFrame style={{width, height}} src="https://remotion.dev" />;
+};
+
+export default IFrameTest;
diff --git a/packages/example/src/LoopedVideo/index.tsx b/packages/example/src/LoopedVideo/index.tsx
new file mode 100644
index 0000000000..acc7411e2c
--- /dev/null
+++ b/packages/example/src/LoopedVideo/index.tsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import {Loop, useCurrentFrame} from 'remotion';
+
+const LoopedVideo: React.FC = () => {
+ return (
+ <Loop durationInFrames={50} times={3} name="MyLoop">
+ <Child />
+ </Loop>
+ );
+};
+
+const Child = () => {
+ const frame = useCurrentFrame();
+
+ return (
+ <div
+ style={{
+ backgroundColor: 'white',
+ flex: 1,
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ fontSize: 50,
+ }}
+ >
+ {frame}
+ </div>
+ );
+};
+
+export default LoopedVideo;
diff --git a/packages/example/src/Lottie/Cybertruck/index.tsx b/packages/example/src/Lottie/Cybertruck/index.tsx
new file mode 100644
index 0000000000..53b01b177a
--- /dev/null
+++ b/packages/example/src/Lottie/Cybertruck/index.tsx
@@ -0,0 +1,64 @@
+import {Lottie} from '@remotion/lottie';
+import {AbsoluteFill, useVideoConfig} from 'remotion';
+
+const lottie = {
+ v: '5.5.2',
+ fr: 1,
+ ip: 0,
+ op: 1,
+ w: 500,
+ h: 500,
+ nm: '@forresto/movie-to-lottie',
+ ddd: 0,
+ assets: [
+ {
+ id: 'fr_0',
+ w: 500,
+ h: 500,
+ u: '',
+ p: 'https://www.remotion.dev/img/new-logo.png',
+ e: 1,
+ },
+ ],
+ layers: [
+ {
+ ddd: 0,
+ ind: 1,
+ ty: 2,
+ nm: 'fr_0.jpg',
+ cl: 'jpg',
+ refId: 'fr_0',
+ sr: 1,
+ ks: {
+ o: {a: 0, k: 100, ix: 11},
+ r: {a: 0, k: 0, ix: 10},
+ p: {a: 0, k: [250, 250, 0], ix: 2},
+ a: {a: 0, k: [250, 250, 0], ix: 1},
+ s: {a: 0, k: [100, 100, 100], ix: 6},
+ },
+ ao: 0,
+ ip: 0,
+ op: 1,
+ st: 0,
+ bm: 0,
+ },
+ ],
+ markers: [],
+};
+
+const LottieCybertruck = () => {
+ const {height, width} = useVideoConfig();
+
+ return (
+ <AbsoluteFill style={{height, width}}>
+ <Lottie
+ loop
+ animationData={lottie}
+ playbackRate={10}
+ style={{height: 200}}
+ />
+ </AbsoluteFill>
+ );
+};
+
+export default LottieCybertruck;
diff --git a/packages/example/src/Lottie/ExplodingBird/index.tsx b/packages/example/src/Lottie/ExplodingBird/index.tsx
new file mode 100644
index 0000000000..4943c82dab
--- /dev/null
+++ b/packages/example/src/Lottie/ExplodingBird/index.tsx
@@ -0,0 +1,114 @@
+import {Lottie} from '@remotion/lottie';
+import {useEffect, useState} from 'react';
+import {
+ AbsoluteFill,
+ continueRender,
+ delayRender,
+ Loop,
+ Sequence,
+ useVideoConfig,
+} from 'remotion';
+
+const paths = {
+ // Credits: Christina Bublyk, Viktor Anisimov, Daniel Teasdale
+ // Source: https://lottiefiles.com/blog/tips-and-tutorials/how-to-chain-interactions-lottie-interactivity
+ bird: 'https://assets4.lottiefiles.com/packages/lf20_zyquagfl.json',
+ // Credits: https://lottiefiles.com/34191-end-color
+ end: 'https://assets4.lottiefiles.com/private_files/lf30_uezjhwrv.json',
+};
+
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+type PathsData = Record<keyof typeof paths, any> | null;
+
+// I don't know if all animations have the same shape
+interface Marker {
+ tm: number;
+ cm: string;
+ dr: number;
+}
+
+const getFramesByName = (name: string, markers: Marker[] = []) => {
+ return markers.find((m) => m.cm.includes(name))?.dr || 0;
+};
+
+const LottieExplodingBird = () => {
+ const {height, width} = useVideoConfig();
+ const [animationData, setAnimationData] = useState<PathsData>(null);
+ const [handle] = useState(delayRender);
+
+ useEffect(() => {
+ Promise.all([
+ fetch(paths.bird).then((res) => res.json()),
+ fetch(paths.end).then((res) => res.json()),
+ ]).then(([bird, end]) => {
+ setAnimationData({bird, end});
+ continueRender(handle);
+ });
+ }, [handle]);
+
+ // Get the markers and frames from the data
+ const markers = animationData?.bird?.markers;
+ const birdNFrames = getFramesByName('bird', markers);
+ const explosionNFrames = getFramesByName('explosion', markers);
+ const feathersNFrames = getFramesByName('feathers', markers);
+ // Computed variables
+ const birdLoops = 6;
+ const birdSpeed = 2;
+ const explosionSpeed = 0.1;
+ const feathersSpeed = 0.8;
+ const birdDuration = Math.floor(birdNFrames / birdSpeed);
+ const explosionFrom = birdDuration * birdLoops;
+ const explosionDuration = Math.floor(explosionNFrames / explosionSpeed);
+ const explosionStart = birdNFrames / explosionSpeed;
+ const feathersFrom = explosionFrom + explosionDuration;
+ const feathersDuration = Math.floor(feathersNFrames / feathersSpeed);
+ const feathersStart = Math.ceil(
+ (birdNFrames + explosionNFrames) / feathersSpeed
+ );
+ const endFrom = feathersFrom + feathersDuration;
+
+ return (
+ <AbsoluteFill style={{height, width}}>
+ {animationData?.bird ? (
+ <>
+ <Loop durationInFrames={birdDuration} times={birdLoops}>
+ <Lottie
+ animationData={animationData.bird}
+ playbackRate={birdSpeed}
+ style={{height, width}}
+ />
+ </Loop>
+ <Sequence from={explosionFrom} durationInFrames={explosionDuration}>
+ <Sequence from={-explosionStart}>
+ <Lottie
+ animationData={animationData.bird}
+ playbackRate={explosionSpeed}
+ style={{height, width}}
+ />
+ </Sequence>
+ </Sequence>
+ <Sequence from={feathersFrom} durationInFrames={feathersDuration}>
+ <Sequence from={-feathersStart}>
+ <Lottie
+ animationData={animationData.bird}
+ playbackRate={feathersSpeed}
+ style={{height, width}}
+ />
+ </Sequence>
+ </Sequence>
+ </>
+ ) : null}
+ {animationData?.end ? (
+ <Sequence from={endFrom}>
+ <Lottie
+ animationData={animationData.end}
+ playbackRate={2}
+ style={{height, width}}
+ />
+ </Sequence>
+ ) : null}
+ </AbsoluteFill>
+ );
+};
+
+export default LottieExplodingBird;
diff --git a/packages/example/src/Lottie/Halloween/Balloons.tsx b/packages/example/src/Lottie/Halloween/Balloons.tsx
new file mode 100644
index 0000000000..7814672d8f
--- /dev/null
+++ b/packages/example/src/Lottie/Halloween/Balloons.tsx
@@ -0,0 +1,72 @@
+import {Lottie, LottieAnimationData} from '@remotion/lottie';
+import React, {useEffect, useState} from 'react';
+import {
+ continueRender,
+ delayRender,
+ interpolate,
+ Sequence,
+ staticFile,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+import './common.css';
+import HeaderAndCredits from './HeaderAndCredits';
+
+const Balloons = () => {
+ const frame = useCurrentFrame();
+ const {durationInFrames} = useVideoConfig();
+ const opacity = interpolate(
+ frame,
+ [0, 5, durationInFrames - 20, durationInFrames],
+ [0, 1, 1, 0]
+ );
+
+ const [handle] = useState(() => delayRender('Loading Lottie animation'));
+
+ const [animationData, setAnimationData] =
+ useState<LottieAnimationData | null>(null);
+
+ useEffect(() => {
+ // Credits: https://lottiefiles.com/81293-horror-ballons
+ fetch(staticFile('balloons.json'))
+ .then((data) => data.json())
+ .then((json) => {
+ setAnimationData(json);
+ continueRender(handle);
+ })
+ .catch((err) => {
+ console.log('Animation failed to load', err);
+ });
+ }, [handle]);
+
+ if (!animationData) {
+ return null;
+ }
+
+ return (
+ <div style={{opacity, display: 'grid', alignContent: 'center', flex: 1}}>
+ <Lottie
+ animationData={animationData}
+ playbackRate={2}
+ style={{height: 700}}
+ />
+ </div>
+ );
+};
+
+const LottieBalloons: React.FC = () => {
+ const {height, width} = useVideoConfig();
+
+ return (
+ <div className="container" style={{height, width}}>
+ <Sequence from={0}>
+ <Balloons />
+ </Sequence>
+ <Sequence from={10}>
+ <HeaderAndCredits author="Muhammad Yasir Ismail" />
+ </Sequence>
+ </div>
+ );
+};
+
+export default LottieBalloons;
diff --git a/packages/example/src/Lottie/Halloween/HeaderAndCredits.tsx b/packages/example/src/Lottie/Halloween/HeaderAndCredits.tsx
new file mode 100644
index 0000000000..8d553a7a72
--- /dev/null
+++ b/packages/example/src/Lottie/Halloween/HeaderAndCredits.tsx
@@ -0,0 +1,44 @@
+import {
+ AbsoluteFill,
+ interpolate,
+ spring,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+import './common.css';
+
+const HeaderAndCredits = ({author}: {author: string}) => {
+ const frame = useCurrentFrame();
+ const {durationInFrames, fps} = useVideoConfig();
+
+ const opacity = interpolate(
+ frame,
+ [0, 5, durationInFrames - 20, durationInFrames],
+ [0, 1, 1, 0]
+ );
+ const scale = spring({
+ fps,
+ frame,
+ from: 0.25,
+ to: 1,
+ config: {
+ damping: 100,
+ mass: 0.5,
+ },
+ });
+ const posY = interpolate(frame, [0, 10], [100, 0], {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ });
+
+ return (
+ <AbsoluteFill className="content" style={{opacity}}>
+ <h1 style={{transform: `scale(${scale})`}}>Happy Halloween!</h1>
+ <span style={{transform: `translateY(${posY}%)`}}>
+ Animation by {author}
+ </span>
+ </AbsoluteFill>
+ );
+};
+
+export default HeaderAndCredits;
diff --git a/packages/example/src/Lottie/Halloween/Pumpkin.tsx b/packages/example/src/Lottie/Halloween/Pumpkin.tsx
new file mode 100644
index 0000000000..00e08a4be4
--- /dev/null
+++ b/packages/example/src/Lottie/Halloween/Pumpkin.tsx
@@ -0,0 +1,66 @@
+import {Lottie} from '@remotion/lottie';
+import {useEffect, useState} from 'react';
+import {
+ AbsoluteFill,
+ continueRender,
+ delayRender,
+ interpolate,
+ Sequence,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+import './common.css';
+import HeaderAndCredits from './HeaderAndCredits';
+
+const Pumpkin = () => {
+ const frame = useCurrentFrame();
+ const {durationInFrames} = useVideoConfig();
+
+ const animationDelay = 1;
+ const animationInput = frame - animationDelay;
+ const animationOpacity = interpolate(
+ animationInput,
+ [0, 5, durationInFrames - 20, durationInFrames],
+ [0, 1, 1, 0]
+ );
+
+ const [animationData, setAnimationData] = useState(null);
+ const [handle] = useState(delayRender);
+
+ useEffect(() => {
+ // Credits: https://lottiefiles.com/37789-scary-halloween-pumpkin
+ fetch('https://assets2.lottiefiles.com/packages/lf20_c5izbrx1.json')
+ .then((res) => res.json())
+ .then((data) => {
+ setAnimationData(data);
+ continueRender(handle);
+ });
+ }, [handle]);
+
+ if (!animationData) {
+ return null;
+ }
+
+ return (
+ <AbsoluteFill style={{opacity: animationOpacity}}>
+ <Lottie animationData={animationData} />
+ </AbsoluteFill>
+ );
+};
+
+const LottiePumpkin: React.FC = () => {
+ const {durationInFrames, height, width} = useVideoConfig();
+
+ return (
+ <div className="container" style={{height, width}}>
+ <Sequence from={0} durationInFrames={durationInFrames}>
+ <Pumpkin />
+ </Sequence>
+ <Sequence from={30}>
+ <HeaderAndCredits author="Roman Serebryakov" />
+ </Sequence>
+ </div>
+ );
+};
+
+export default LottiePumpkin;
diff --git a/packages/example/src/Lottie/Halloween/common.css b/packages/example/src/Lottie/Halloween/common.css
new file mode 100644
index 0000000000..9abeffc6c7
--- /dev/null
+++ b/packages/example/src/Lottie/Halloween/common.css
@@ -0,0 +1,33 @@
+@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');
+
+* {
+ font-family: 'Creepster';
+}
+
+.container {
+ background-color: black;
+ display: flex;
+ flex-direction: column;
+ padding: 80px;
+}
+
+.content {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ padding: 40px;
+}
+
+.content h1 {
+ color: white;
+ font-size: 8rem;
+ margin: 0;
+ text-align: center;
+}
+
+.content span {
+ color: white;
+ font-size: 1.5rem;
+ letter-spacing: 1.2px;
+ text-align: center;
+}
diff --git a/packages/example/src/Lottie/ImageInLottie/index.tsx b/packages/example/src/Lottie/ImageInLottie/index.tsx
new file mode 100644
index 0000000000..81344e5e7d
--- /dev/null
+++ b/packages/example/src/Lottie/ImageInLottie/index.tsx
@@ -0,0 +1,64 @@
+import {Lottie} from '@remotion/lottie';
+import {AbsoluteFill, useVideoConfig} from 'remotion';
+
+const lottie = {
+ v: '5.5.2',
+ fr: 1,
+ ip: 0,
+ op: 1,
+ w: 500,
+ h: 500,
+ nm: '@forresto/movie-to-lottie',
+ ddd: 0,
+ assets: [
+ {
+ id: 'fr_0',
+ w: 500,
+ h: 500,
+ u: '',
+ p: 'https://www.remotion.dev/img/new-logo.png',
+ e: 1,
+ },
+ ],
+ layers: [
+ {
+ ddd: 0,
+ ind: 1,
+ ty: 2,
+ nm: 'fr_0.jpg',
+ cl: 'jpg',
+ refId: 'fr_0',
+ sr: 1,
+ ks: {
+ o: {a: 0, k: 100, ix: 11},
+ r: {a: 0, k: 0, ix: 10},
+ p: {a: 0, k: [250, 250, 0], ix: 2},
+ a: {a: 0, k: [250, 250, 0], ix: 1},
+ s: {a: 0, k: [100, 100, 100], ix: 6},
+ },
+ ao: 0,
+ ip: 0,
+ op: 1,
+ st: 0,
+ bm: 0,
+ },
+ ],
+ markers: [],
+};
+
+const ImageInLottie = () => {
+ const {height, width} = useVideoConfig();
+
+ return (
+ <AbsoluteFill style={{height, width}}>
+ <Lottie
+ loop
+ animationData={lottie}
+ playbackRate={10}
+ style={{height: 200}}
+ />
+ </AbsoluteFill>
+ );
+};
+
+export default ImageInLottie;
diff --git a/packages/example/src/ManyAudio/index.tsx b/packages/example/src/ManyAudio/index.tsx
new file mode 100644
index 0000000000..1e488329ae
--- /dev/null
+++ b/packages/example/src/ManyAudio/index.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+import {AbsoluteFill, Audio, staticFile} from 'remotion';
+
+export const ManyAudio: React.FC = () => {
+ return (
+ <AbsoluteFill>
+ {new Array(32).fill(true).map((_, i) => {
+ return <Audio src={staticFile('music.mp3?mus=' + i)} />;
+ })}
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/MdxTest/hmm.mdx b/packages/example/src/MdxTest/hmm.mdx
new file mode 100644
index 0000000000..144c7fc5df
--- /dev/null
+++ b/packages/example/src/MdxTest/hmm.mdx
@@ -0,0 +1,6 @@
+## Hi there
+
+- List support
+- wow
+
+<div style={{color: 'green'}}>MDX</div>
diff --git a/packages/example/src/MdxTest/index.tsx b/packages/example/src/MdxTest/index.tsx
new file mode 100644
index 0000000000..357b634db5
--- /dev/null
+++ b/packages/example/src/MdxTest/index.tsx
@@ -0,0 +1,20 @@
+import React from 'react';
+import {AbsoluteFill} from 'remotion';
+import Hi from './hmm.mdx';
+
+const MdxTest: React.FC = () => {
+ return (
+ <AbsoluteFill
+ style={{
+ backgroundColor: 'white',
+ fontSize: 40,
+ fontFamily: 'Helvetica',
+ padding: 30,
+ }}
+ >
+ <Hi />
+ </AbsoluteFill>
+ );
+};
+
+export default MdxTest;
diff --git a/packages/example/src/MissingImg/index.tsx b/packages/example/src/MissingImg/index.tsx
new file mode 100644
index 0000000000..8c846c5d3c
--- /dev/null
+++ b/packages/example/src/MissingImg/index.tsx
@@ -0,0 +1,7 @@
+import React from 'react';
+import {Img} from 'remotion';
+
+export const MissingImg = (): React.ReactNode => {
+ // eslint-disable-next-line @remotion/no-string-assets
+ return <Img src="doesnotexist" />;
+};
diff --git a/packages/example/src/NestedSequences/index.tsx b/packages/example/src/NestedSequences/index.tsx
new file mode 100644
index 0000000000..9127405e11
--- /dev/null
+++ b/packages/example/src/NestedSequences/index.tsx
@@ -0,0 +1,39 @@
+import React from 'react';
+import {Sequence, useCurrentFrame} from 'remotion';
+
+const NestedSequences: React.FC = () => {
+ return (
+ <Sequence from={20} durationInFrames={40}>
+ <NestedTwo />
+ </Sequence>
+ );
+};
+
+const NestedTwo = () => {
+ return (
+ <Sequence from={20} durationInFrames={60}>
+ <Child />
+ </Sequence>
+ );
+};
+
+const Child = () => {
+ const frame = useCurrentFrame();
+
+ return (
+ <div
+ style={{
+ backgroundColor: 'white',
+ flex: 1,
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ fontSize: 50,
+ }}
+ >
+ {frame}
+ </div>
+ );
+};
+
+export default NestedSequences;
diff --git a/packages/example/src/OfflineAudioBuffer/index.tsx b/packages/example/src/OfflineAudioBuffer/index.tsx
new file mode 100644
index 0000000000..23996aed76
--- /dev/null
+++ b/packages/example/src/OfflineAudioBuffer/index.tsx
@@ -0,0 +1,74 @@
+import {AbsoluteFill, interpolate} from 'remotion';
+import {useCallback, useEffect, useState} from 'react';
+import {Audio, continueRender, delayRender, useVideoConfig} from 'remotion';
+import {audioBufferToDataUrl} from '@remotion/media-utils';
+
+const C4_FREQUENCY = 261.63;
+const sampleRate = 44100;
+
+export const OfflineAudioBufferExample: React.FC = () => {
+ const [handle] = useState(() => delayRender());
+ const [audioBuffer, setAudioBuffer] = useState<string | null>(null);
+ const {fps, durationInFrames} = useVideoConfig();
+ const lengthInSeconds = durationInFrames / fps;
+
+ const renderAudio = useCallback(async () => {
+ const offlineContext = new OfflineAudioContext({
+ numberOfChannels: 2,
+ length: sampleRate * lengthInSeconds,
+ sampleRate,
+ });
+ const oscillatorNode = offlineContext.createOscillator();
+ const gainNode = offlineContext.createGain();
+ oscillatorNode.connect(gainNode);
+ gainNode.connect(offlineContext.destination);
+ gainNode.gain.setValueAtTime(0.5, offlineContext.currentTime);
+
+ oscillatorNode.type = 'sine';
+ oscillatorNode.frequency.value = C4_FREQUENCY;
+
+ const {currentTime} = offlineContext;
+ oscillatorNode.start(currentTime);
+ oscillatorNode.stop(currentTime + lengthInSeconds);
+
+ const buffer = await offlineContext.startRendering();
+ setAudioBuffer(audioBufferToDataUrl(buffer));
+
+ continueRender(handle);
+ }, [handle, lengthInSeconds]);
+
+ useEffect(() => {
+ renderAudio();
+ }, [renderAudio]);
+
+ return (
+ <AbsoluteFill>
+ {audioBuffer && (
+ <Audio
+ src={audioBuffer}
+ startFrom={0}
+ endAt={100}
+ volume={(f) =>
+ interpolate(f, [0, 50, 100], [0, 1, 0], {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ })
+ }
+ />
+ )}
+ <AbsoluteFill
+ style={{
+ fontFamily: 'Helvetica, Arial',
+ fontSize: 50,
+ color: 'white',
+ justifyContent: 'center',
+ textAlign: 'center',
+ }}
+ >
+ Render sound from offline audio buffer
+ </AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
+
+export default OfflineAudioBufferExample;
diff --git a/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx b/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
new file mode 100644
index 0000000000..9e57edd374
--- /dev/null
+++ b/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
@@ -0,0 +1,12 @@
+import {interpolate, OffthreadVideo} from 'remotion';
+
+export const OffthreadRemoteVideo: React.FC = () => {
+ return (
+ <OffthreadVideo
+ volume={(f) =>
+ interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
+ }
+ src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
+ />
+ );
+};
diff --git a/packages/example/src/Orb/Orb.tsx b/packages/example/src/Orb/Orb.tsx
new file mode 100644
index 0000000000..b1b598ec08
--- /dev/null
+++ b/packages/example/src/Orb/Orb.tsx
@@ -0,0 +1,33 @@
+import {ContactShadows, MeshDistortMaterial} from '@react-three/drei';
+
+export const Orb = () => {
+ return (
+ <>
+ <ambientLight intensity={2.5} />
+ <pointLight position-z={-15} intensity={1} color="#F8C069" />
+ <mesh>
+ <sphereBufferGeometry args={[1, 64, 64]} />
+ <MeshDistortMaterial
+ color="black"
+ envMapIntensity={1}
+ clearcoat={1}
+ clearcoatRoughness={0}
+ metalness={0.1}
+ // @ts-expect-error wrong types
+ mass={2}
+ tenstion={1000}
+ friction={10}
+ />
+ </mesh>
+ <ContactShadows
+ rotation={[Math.PI / 2, 0, 0]}
+ position={[0, -1.6, 0]}
+ opacity={0.8}
+ width={15}
+ height={15}
+ blur={2.5}
+ far={1.6}
+ />
+ </>
+ );
+};
diff --git a/packages/example/src/Orb/index.tsx b/packages/example/src/Orb/index.tsx
new file mode 100644
index 0000000000..f1f5d8f214
--- /dev/null
+++ b/packages/example/src/Orb/index.tsx
@@ -0,0 +1,23 @@
+import {ThreeCanvas} from '@remotion/three';
+import React from 'react';
+import {Orb} from './Orb';
+
+export const OrbScene: React.FC = () => {
+ return (
+ <ThreeCanvas
+ width={2000}
+ height={2000}
+ gl={{
+ alpha: false,
+ antialias: false,
+ stencil: false,
+ depth: false,
+ }}
+ onCreated={(state) => state.gl.setClearColor('white')}
+ >
+ <ambientLight intensity={1.5} color={0xffffff} />
+ <pointLight position={[10, 10, 0]} />
+ <Orb />
+ </ThreeCanvas>
+ );
+};
diff --git a/packages/example/src/Paths/PathEvolve.tsx b/packages/example/src/Paths/PathEvolve.tsx
new file mode 100644
index 0000000000..49fd55c35f
--- /dev/null
+++ b/packages/example/src/Paths/PathEvolve.tsx
@@ -0,0 +1,157 @@
+import {evolvePath} from '@remotion/paths';
+import React from 'react';
+import {AbsoluteFill, spring, useCurrentFrame, useVideoConfig} from 'remotion';
+
+const path1 = 'M70.0708 -74.7021C120.649 196.82 515.72 572.643 1156.38 910.447';
+
+const path2 =
+ 'M835.861 203.393C629.777 453.394 415.916 655.36 237.6 780.052C148.205 842.563 69.6438 884.304 6.78505 903.743C-57.91 923.749 -95.0356 917.089 -114.147 901.335C-133.259 885.58 -146.881 850.408 -139.586 783.084C-132.498 717.671 -106.514 632.589 -62.2091 532.908C26.1669 334.076 183.616 85.6076 389.701 -164.393C595.785 -414.394 809.646 -616.36 987.962 -741.051C1077.36 -803.563 1155.92 -845.303 1218.78 -864.742C1283.47 -884.749 1320.6 -878.089 1339.71 -862.334C1358.82 -846.58 1372.44 -811.407 1365.15 -744.083C1358.06 -678.67 1332.08 -593.589 1287.77 -493.908C1199.4 -295.075 1041.95 -46.6073 835.861 203.393Z';
+
+const PathEvolve: React.FC = () => {
+ const {fps} = useVideoConfig();
+ const frame = useCurrentFrame();
+ const spr = spring({
+ fps,
+ frame,
+ config: {
+ damping: 200,
+ },
+ });
+
+ const evolution1 = evolvePath(spr, path1);
+ const evolution2 = evolvePath(spr, path2);
+
+ return (
+ <AbsoluteFill>
+ <svg
+ width="1080"
+ height="1080"
+ viewBox="0 0 1080 1080"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clipPath="url(#clip0_9_2)">
+ <g filter="url(#filter0_d_9_2)">
+ <path
+ d={path1}
+ stroke="url(#paint0_linear_9_2)"
+ strokeWidth="89.9167"
+ shapeRendering="crispEdges"
+ strokeDasharray={evolution1.strokeDasharray}
+ strokeDashoffset={evolution1.strokeDashoffset}
+ />
+ </g>
+ <g filter="url(#filter1_d_9_2)">
+ <path
+ d={path2}
+ stroke="url(#paint1_linear_9_2)"
+ strokeWidth="79.2391"
+ shapeRendering="crispEdges"
+ strokeDasharray={evolution2.strokeDasharray}
+ strokeDashoffset={evolution2.strokeDashoffset}
+ />
+ </g>
+ </g>
+ <defs>
+ <filter
+ id="filter0_d_9_2"
+ x="23.6248"
+ y="-82.9353"
+ width="1155.97"
+ height="1037.65"
+ filterUnits="userSpaceOnUse"
+ colorInterpolationFilters="sRGB"
+ >
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
+ <feColorMatrix
+ in="SourceAlpha"
+ type="matrix"
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
+ result="hardAlpha"
+ />
+ <feOffset dy="2.24792" />
+ <feGaussianBlur stdDeviation="1.12396" />
+ <feComposite in2="hardAlpha" operator="out" />
+ <feColorMatrix
+ type="matrix"
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
+ />
+ <feBlend
+ mode="normal"
+ in2="BackgroundImageFix"
+ result="effect1_dropShadow_9_2"
+ />
+ <feBlend
+ mode="normal"
+ in="SourceGraphic"
+ in2="effect1_dropShadow_9_2"
+ result="shape"
+ />
+ </filter>
+ <filter
+ id="filter1_d_9_2"
+ x="-258.175"
+ y="-991.508"
+ width="1741.91"
+ height="2026.51"
+ filterUnits="userSpaceOnUse"
+ colorInterpolationFilters="sRGB"
+ >
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
+ <feColorMatrix
+ in="SourceAlpha"
+ type="matrix"
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
+ result="hardAlpha"
+ />
+ <feOffset dy="2.24792" />
+ <feGaussianBlur stdDeviation="38.4956" />
+ <feComposite in2="hardAlpha" operator="out" />
+ <feColorMatrix
+ type="matrix"
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
+ />
+ <feBlend
+ mode="normal"
+ in2="BackgroundImageFix"
+ result="effect1_dropShadow_9_2"
+ />
+ <feBlend
+ mode="normal"
+ in="SourceGraphic"
+ in2="effect1_dropShadow_9_2"
+ result="shape"
+ />
+ </filter>
+ <linearGradient
+ id="paint0_linear_9_2"
+ x1="571.918"
+ y1="-147.714"
+ x2="571.918"
+ y2="942.075"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#0B84F3" />
+ <stop offset="1" stopColor="#0B84F3" stopOpacity="0.52" />
+ </linearGradient>
+ <linearGradient
+ id="paint1_linear_9_2"
+ x1="1294.73"
+ y1="-144.472"
+ x2="-309.635"
+ y2="-195.201"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#0B84F3" />
+ <stop offset="1" stopColor="#0B84F3" stopOpacity="0.46" />
+ </linearGradient>
+ <clipPath id="clip0_9_2">
+ <rect width="1080" height="1080" fill="white" />
+ </clipPath>
+ </defs>
+ </svg>
+ </AbsoluteFill>
+ );
+};
+
+export default PathEvolve;
diff --git a/packages/example/src/Paths/PathMorph.tsx b/packages/example/src/Paths/PathMorph.tsx
new file mode 100644
index 0000000000..0928c5a516
--- /dev/null
+++ b/packages/example/src/Paths/PathMorph.tsx
@@ -0,0 +1,35 @@
+import {interpolatePath} from '@remotion/paths';
+import React from 'react';
+import {spring, useCurrentFrame, useVideoConfig} from 'remotion';
+
+const path1 =
+ 'M94.5001 332C47.0001 233.5 -9.09994 56.1999 146.5 135C341 233.5 291 426 475.5 353C623.1 294.6 649.667 154 644.5 91C734.333 47 900.5 9.79997 846.5 213';
+const path2 =
+ 'M94.1703 715.596C37.5 635.5 -9.42966 439.796 146.17 518.596C340.67 617.096 273 708.5 457.5 635.5C605.1 577.1 556 503.5 704 596.596C872.5 666.5 652 441 867.5 565.5';
+
+const PathMorph: React.FC = () => {
+ const {fps} = useVideoConfig();
+ const frame = useCurrentFrame();
+
+ const progress = spring({
+ fps,
+ frame,
+ config: {damping: 200},
+ });
+
+ const path = interpolatePath(progress, path1, path2);
+
+ return (
+ <svg
+ width="1080"
+ height="1080"
+ viewBox="0 0 1080 1080"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path d={path} stroke="blue" strokeWidth="42" />
+ </svg>
+ );
+};
+
+export default PathMorph;
diff --git a/packages/example/src/ReactSvg/Arc.tsx b/packages/example/src/ReactSvg/Arc.tsx
new file mode 100644
index 0000000000..c2b2b88296
--- /dev/null
+++ b/packages/example/src/ReactSvg/Arc.tsx
@@ -0,0 +1,104 @@
+import {getPointAtLength, getTangentAtLength} from '@remotion/paths';
+import React from 'react';
+import {useVideoConfig} from 'remotion';
+import {COLOR_1, COLOR_2} from './config';
+
+const rx = 170;
+const ry = 400;
+
+const arcLength = Math.PI * 2 * Math.sqrt((rx * rx + ry * ry) / 2);
+
+function ellipseToPath(cx: number, cy: number): string {
+ let output = 'M' + (cx - rx).toString() + ',' + cy.toString();
+ output +=
+ 'a' +
+ rx.toString() +
+ ',' +
+ ry.toString() +
+ ' 0 1,0 ' +
+ (2 * rx).toString() +
+ ',0';
+ output +=
+ 'a' +
+ rx.toString() +
+ ',' +
+ ry.toString() +
+ ' 0 1,0 ' +
+ (-2 * rx).toString() +
+ ',0';
+ return output;
+}
+
+const electronRadius = 6;
+
+export const Arc: React.FC<{
+ progress: number;
+ rotation: number;
+ rotateProgress: number;
+ electronProgress: number;
+ electronOpacity: number;
+}> = ({
+ progress,
+ rotation,
+ rotateProgress,
+ electronProgress,
+ electronOpacity,
+}) => {
+ const config = useVideoConfig();
+ const cx = config.width / 2;
+ const cy = config.height / 2;
+ const d = ellipseToPath(cx, cy);
+ const tangent = getTangentAtLength(d, (electronProgress % 1) * arcLength);
+ const pointAtLength = getPointAtLength(d, (electronProgress % 1) * arcLength);
+ const move = (orig: number, x: number, y: number): number =>
+ orig + x * tangent.x + y * tangent.y;
+
+ const leftPointArrow = [
+ move(pointAtLength.x, 0, electronRadius),
+ move(pointAtLength.y, -electronRadius, 0),
+ ];
+ const midPoint = [move(pointAtLength.x, 60, 0), move(pointAtLength.y, 0, 60)];
+ const rightPointArrow = [
+ move(pointAtLength.x, 0, -electronRadius),
+ move(pointAtLength.y, electronRadius, 0),
+ ];
+ return (
+ <svg
+ viewBox={`0 0 ${config.width} ${config.height}`}
+ style={{
+ position: 'absolute',
+ transform: `rotate(${rotation * rotateProgress}deg)`,
+ transformOrigin: `${config.width / 2}px ${config.height / 2}px`,
+ }}
+ >
+ <defs>
+ <linearGradient id="gradient" x1="0%" y1="0%" x2="0%" y2="100%">
+ <stop offset="0%" stopColor={COLOR_1} />
+ <stop offset="100%" stopColor={COLOR_2} />
+ </linearGradient>
+ </defs>
+ <path
+ d={d}
+ fill="none"
+ stroke="url(#gradient)"
+ strokeDasharray={arcLength}
+ strokeDashoffset={arcLength - arcLength * progress}
+ strokeLinecap="round"
+ strokeWidth={30}
+ />
+ <circle
+ r={electronRadius}
+ fill="#fff"
+ cx={pointAtLength.x}
+ cy={pointAtLength.y}
+ style={{opacity: electronOpacity}}
+ />
+ <path
+ d={`M${leftPointArrow[0]} ${leftPointArrow[1]} ${midPoint[0]} ${midPoint[1]} ${rightPointArrow[0]} ${rightPointArrow[1]} Z`}
+ fill="white"
+ strokeLinecap="round"
+ style={{opacity: electronOpacity}}
+ />
+ </svg>
+ );
+};
diff --git a/packages/example/src/ReactSvg/Atom.tsx b/packages/example/src/ReactSvg/Atom.tsx
new file mode 100644
index 0000000000..6a17781039
--- /dev/null
+++ b/packages/example/src/ReactSvg/Atom.tsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import {useVideoConfig} from 'remotion';
+import {COLOR_1, COLOR_2} from './config';
+
+export const Atom: React.FC<{
+ scale: number;
+}> = ({scale}) => {
+ const config = useVideoConfig();
+ return (
+ <svg
+ viewBox={`0 0 ${config.width} ${config.height}`}
+ style={{
+ position: 'absolute',
+ transform: `scale(${scale})`,
+ }}
+ >
+ <defs>
+ <linearGradient id="gradient2" x1="0%" y1="0%" x2="100%" y2="0%">
+ <stop offset="0%" stopColor={COLOR_1} />
+ <stop offset="100%" stopColor={COLOR_2} />
+ </linearGradient>
+ </defs>
+ <circle
+ r={70}
+ cx={config.width / 2}
+ cy={config.height / 2}
+ fill="url(#gradient2)"
+ />
+ </svg>
+ );
+};
diff --git a/packages/example/src/ReactSvg/Black.tsx b/packages/example/src/ReactSvg/Black.tsx
new file mode 100644
index 0000000000..83c2f26bb4
--- /dev/null
+++ b/packages/example/src/ReactSvg/Black.tsx
@@ -0,0 +1,20 @@
+import React from 'react';
+import {useVideoConfig} from 'remotion';
+
+export const Black: React.FC<{
+ scale: number;
+}> = ({scale}) => {
+ const config = useVideoConfig();
+ return (
+ <svg
+ viewBox={`0 0 ${config.width} ${config.height}`}
+ style={{
+ position: 'absolute',
+ transform: `scale(${0.8})`,
+ opacity: scale,
+ }}
+ >
+ <circle r={70} cx={config.width / 2} cy={config.height / 2} fill="#000" />
+ </svg>
+ );
+};
diff --git a/packages/example/src/ReactSvg/DotGrid.tsx b/packages/example/src/ReactSvg/DotGrid.tsx
new file mode 100644
index 0000000000..72f11de49d
--- /dev/null
+++ b/packages/example/src/ReactSvg/DotGrid.tsx
@@ -0,0 +1,32 @@
+import React from 'react';
+import {useVideoConfig} from 'remotion';
+import styled from 'styled-components';
+
+const StyledSvg = styled.svg`
+ position: absolute;
+`;
+
+export const DotGrid: React.FC = () => {
+ const videoConfig = useVideoConfig();
+
+ const dotSpacing = Math.ceil(videoConfig.width / 50);
+ const rows = Math.ceil(videoConfig.height / dotSpacing);
+ return (
+ <StyledSvg viewBox={`0 0 ${videoConfig.width} ${videoConfig.height}`}>
+ {new Array(50).fill(true).map((_, i) => {
+ return new Array(rows).fill(true).map((_j, j) => {
+ return (
+ <circle
+ // eslint-disable-next-line react/no-array-index-key
+ key={j}
+ r={2}
+ cx={i * dotSpacing}
+ cy={j * dotSpacing}
+ fill="rgba(0, 0, 0, 0.1)"
+ />
+ );
+ });
+ })}
+ </StyledSvg>
+ );
+};
diff --git a/packages/example/src/ReactSvg/config.ts b/packages/example/src/ReactSvg/config.ts
new file mode 100644
index 0000000000..69e9b331f1
--- /dev/null
+++ b/packages/example/src/ReactSvg/config.ts
@@ -0,0 +1,2 @@
+export const COLOR_1 = '#F1618E';
+export const COLOR_2 = '#F7A773';
diff --git a/packages/example/src/ReactSvg/index.tsx b/packages/example/src/ReactSvg/index.tsx
new file mode 100644
index 0000000000..823c9e1871
--- /dev/null
+++ b/packages/example/src/ReactSvg/index.tsx
@@ -0,0 +1,124 @@
+import React from 'react';
+import {Easing, interpolate, useCurrentFrame, useVideoConfig} from 'remotion';
+import {Arc} from './Arc';
+import {Atom} from './Atom';
+import {Black} from './Black';
+import {DotGrid} from './DotGrid';
+
+const ReactSvg: React.FC<{
+ transparent: boolean;
+}> = ({transparent}) => {
+ const frame = useCurrentFrame();
+ const videoConfig = useVideoConfig();
+ const start = 0;
+ const developDuration = 60;
+ const development = interpolate(
+ frame,
+ [start, developDuration + start],
+ [0, 1],
+ {
+ easing: Easing.bezier(0.12, 1, 1, 1),
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ }
+ );
+
+ const rotateStart = developDuration + 5;
+ const rotateDuration = 40;
+ const rotationDevelopment = interpolate(
+ frame,
+ [rotateStart, rotateStart + rotateDuration],
+ [0, 1],
+ {
+ easing: Easing.bezier(0.12, 1, 1, 1),
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ }
+ );
+
+ const electronStart = 0;
+ const electronDuration = 1000;
+ const electronDevelopment = interpolate(
+ frame,
+ [electronStart, electronStart + electronDuration],
+ [0, 10]
+ );
+
+ const electronOpacity = interpolate(
+ frame,
+ [rotateStart, rotateStart + 20],
+ [0, 1],
+ {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ }
+ );
+
+ const scaleOutStart = 220;
+ const scaleOutEnd = scaleOutStart + 50;
+
+ const scaleIn = interpolate(frame, [0, 30], [1.2, 1], {
+ easing: Easing.ease,
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ });
+
+ const scaleOut = interpolate(frame, [scaleOutStart, scaleOutEnd], [1, 70], {
+ easing: Easing.bezier(0.8, 0.22, 0.96, 0.65),
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ });
+
+ const scaleOutBlackDot = interpolate(
+ frame,
+ [scaleOutStart, scaleOutStart + 10],
+ [0, 1],
+ {
+ easing: Easing.bezier(0.8, 0.22, 0.96, 0.65),
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ }
+ );
+
+ const scale = frame < 70 ? scaleIn : scaleOut;
+
+ return (
+ <div style={{flex: 1, backgroundColor: transparent ? undefined : 'white'}}>
+ <div
+ style={{
+ position: 'absolute',
+ width: videoConfig.width,
+ height: videoConfig.height,
+ transform: `scale(${scale})`,
+ }}
+ >
+ {transparent ? null : <DotGrid />}
+ <Arc
+ rotateProgress={rotationDevelopment}
+ progress={development}
+ rotation={30}
+ electronProgress={electronDevelopment}
+ electronOpacity={electronOpacity}
+ />
+ <Arc
+ rotateProgress={rotationDevelopment}
+ rotation={90}
+ progress={frame < rotateStart ? 0 : 1}
+ electronProgress={electronDevelopment * 1.2 + 0.33}
+ electronOpacity={electronOpacity}
+ />
+ <Arc
+ rotateProgress={rotationDevelopment}
+ rotation={-30}
+ progress={frame < rotateStart ? 0 : 1}
+ electronProgress={electronDevelopment + 0.66}
+ electronOpacity={electronOpacity}
+ />
+ <Atom scale={rotationDevelopment} />
+ {transparent ? null : <Black scale={scaleOutBlackDot} />}
+ </div>
+ </div>
+ );
+};
+
+export default ReactSvg;
diff --git a/packages/example/src/ReallyLongVideo.tsx b/packages/example/src/ReallyLongVideo.tsx
new file mode 100644
index 0000000000..84be7ff830
--- /dev/null
+++ b/packages/example/src/ReallyLongVideo.tsx
@@ -0,0 +1,16 @@
+import {interpolate, Loop, Video} from 'remotion';
+
+const InfinityVideo: React.FC = () => {
+ return (
+ <Loop durationInFrames={10 * 30 * 60}>
+ <Video
+ volume={(f) =>
+ interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
+ }
+ src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
+ />
+ </Loop>
+ );
+};
+
+export default InfinityVideo;
diff --git a/packages/example/src/RemoteVideo/index.tsx b/packages/example/src/RemoteVideo/index.tsx
new file mode 100644
index 0000000000..6ed00fd38a
--- /dev/null
+++ b/packages/example/src/RemoteVideo/index.tsx
@@ -0,0 +1,14 @@
+import {interpolate, Video} from 'remotion';
+
+const RemoteVideo: React.FC = () => {
+ return (
+ <Video
+ volume={(f) =>
+ interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
+ }
+ src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
+ />
+ );
+};
+
+export default RemoteVideo;
diff --git a/packages/example/src/Scripts/index.tsx b/packages/example/src/Scripts/index.tsx
new file mode 100644
index 0000000000..3cec724a68
--- /dev/null
+++ b/packages/example/src/Scripts/index.tsx
@@ -0,0 +1,17 @@
+import React from 'react';
+import {AbsoluteFill} from 'remotion';
+
+// Test of Devanagari script and emojis,
+export const Scripts: React.FC = () => {
+ return (
+ <AbsoluteFill
+ style={{
+ backgroundColor: 'white',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <h1>पूर्वोत्तर में बीजेपी का मजबूत चेहरा 😁</h1>
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/ShadowCircles/Circle.tsx b/packages/example/src/ShadowCircles/Circle.tsx
new file mode 100644
index 0000000000..e220df3c3c
--- /dev/null
+++ b/packages/example/src/ShadowCircles/Circle.tsx
@@ -0,0 +1,60 @@
+import {mix} from 'polished';
+import React from 'react';
+import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
+
+const makeSquircle = (w = 100, h = 100, curvature = 0.5): string => {
+ const curveWidth = (w / 2) * (1 - curvature);
+ const curveHeight = (h / 2) * (1 - curvature);
+ return `
+ M 0, ${h / 2}
+ C 0, ${curveWidth} ${curveHeight}, 0 ${w / 2}, 0
+ S ${w}, ${curveHeight} ${w}, ${h / 2}
+ ${w - curveWidth}, ${h - 0} ${w / 2}, ${h}
+ 0, ${w - curveHeight} 0, ${h / 2}
+ `;
+};
+
+export const Circle: React.FC<{
+ size: number;
+}> = ({size}) => {
+ const videoConfig = useVideoConfig();
+ const frame = useCurrentFrame();
+ const progress = spring({
+ config: {
+ damping: 1000,
+ mass: 0.7,
+ stiffness: 10,
+ overshootClamping: false,
+ },
+ fps: videoConfig.fps,
+ frame,
+ from: 0,
+ to: 1,
+ });
+ const angle = interpolate(progress, [0, 1], [0, Math.PI * 2]);
+ const squircleFactor = interpolate(progress, [0, 1], [0.5, 1.05]);
+ const radius = videoConfig.width / 2;
+ const left = videoConfig.width / 2 - size / 2;
+ const top = videoConfig.height / 2 - size / 2;
+ const x = radius * Math.cos(angle) + radius;
+ const y = -radius * Math.sin(angle) + radius;
+ const amountToMove = (videoConfig.width - size) * (1 - progress);
+ const shade = 1 - Math.min(1, size / videoConfig.width);
+ const color = mix(shade * 0.1, '#000', '#fff');
+
+ return (
+ <svg
+ viewBox={`0 0 ${size} ${size}`}
+ width={size}
+ height={size}
+ style={{
+ position: 'absolute',
+ left: left + amountToMove * x * 0.0003,
+ top: top + amountToMove * y * 0.0003,
+ WebkitFilter: 'drop-shadow(0 0 5px #5851db)',
+ }}
+ >
+ <path d={makeSquircle(size, size, squircleFactor)} fill={color} />
+ </svg>
+ );
+};
diff --git a/packages/example/src/SkipZeroFrame/index.tsx b/packages/example/src/SkipZeroFrame/index.tsx
new file mode 100644
index 0000000000..5faf388386
--- /dev/null
+++ b/packages/example/src/SkipZeroFrame/index.tsx
@@ -0,0 +1,15 @@
+import React from 'react';
+import {useCurrentFrame} from 'remotion';
+
+// Try to render using:
+// npx remotion render src/index.tsx skip-zero-frame --frames=10-20 skip.mp4
+
+export const SkipZeroFrame: React.FC = () => {
+ const frame = useCurrentFrame();
+
+ if (frame === 0 && process.env.NODE_ENV === 'production') {
+ throw new Error('should not render frame 0');
+ }
+
+ return <div>{frame}</div>;
+};
diff --git a/packages/example/src/Spring/base-spring.tsx b/packages/example/src/Spring/base-spring.tsx
new file mode 100644
index 0000000000..6bf2bcbf13
--- /dev/null
+++ b/packages/example/src/Spring/base-spring.tsx
@@ -0,0 +1,57 @@
+import React from 'react';
+import {AbsoluteFill, spring, useCurrentFrame, useVideoConfig} from 'remotion';
+
+export const BaseSpring: React.FC = () => {
+ const frame = useCurrentFrame();
+ const {fps} = useVideoConfig();
+ return (
+ <AbsoluteFill
+ style={{
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <div
+ style={{
+ height: 200,
+ width: 200,
+ backgroundColor: 'red',
+ borderRadius: 100,
+ transform: `scale(${spring({
+ frame,
+ fps,
+ config: {},
+ })})`,
+ }}
+ />
+ </AbsoluteFill>
+ );
+};
+
+export const SpringWithDuration: React.FC = () => {
+ const frame = useCurrentFrame();
+ const {fps} = useVideoConfig();
+ return (
+ <AbsoluteFill
+ style={{
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <div
+ style={{
+ height: 200,
+ width: 200,
+ backgroundColor: 'red',
+ borderRadius: 100,
+ transform: `scale(${spring({
+ frame,
+ fps,
+ config: {},
+ durationInFrames: 90,
+ })})`,
+ }}
+ />
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/StaggerTesting/index.tsx b/packages/example/src/StaggerTesting/index.tsx
new file mode 100644
index 0000000000..67fdb2b00f
--- /dev/null
+++ b/packages/example/src/StaggerTesting/index.tsx
@@ -0,0 +1,22 @@
+import {FC} from 'react';
+import {Series} from 'remotion';
+import ReactSvg from '../ReactSvg';
+import Tiles from '../Tiles';
+
+const SeriesTesting: FC = () => {
+ return (
+ <Series>
+ <Series.Sequence durationInFrames={10}>
+ <Tiles />
+ </Series.Sequence>
+ <Series.Sequence durationInFrames={50}>
+ <ReactSvg transparent={false} />
+ </Series.Sequence>
+ <Series.Sequence durationInFrames={80}>
+ <Tiles />
+ </Series.Sequence>
+ </Series>
+ );
+};
+
+export {SeriesTesting};
diff --git a/packages/example/src/StaticServer/index.tsx b/packages/example/src/StaticServer/index.tsx
new file mode 100644
index 0000000000..48e4ad8f8c
--- /dev/null
+++ b/packages/example/src/StaticServer/index.tsx
@@ -0,0 +1,20 @@
+import React, {useState} from 'react';
+import {continueRender, delayRender, Img, staticFile} from 'remotion';
+
+export const StaticDemo: React.FC = () => {
+ const [handle1] = useState(() => delayRender('handle1'));
+ const [handle2] = useState(() => delayRender('handle2'));
+
+ return (
+ <>
+ <Img
+ src={staticFile('logo.png')}
+ onLoad={() => continueRender(handle1)}
+ />
+ <Img
+ src={staticFile('/nested/mp4.png')}
+ onLoad={() => continueRender(handle2)}
+ />
+ </>
+ );
+};
diff --git a/packages/example/src/StillZoom/index.tsx b/packages/example/src/StillZoom/index.tsx
new file mode 100644
index 0000000000..a0d84bf1a5
--- /dev/null
+++ b/packages/example/src/StillZoom/index.tsx
@@ -0,0 +1,27 @@
+export const StillZoom: React.FC = () => {
+ return (
+ <div
+ style={{
+ display: 'flex',
+ flexWrap: 'wrap',
+ background: '#ffffffaa',
+ }}
+ >
+ {Array(396)
+ .fill(null)
+ .map((_, i) => (
+ <div
+ key={i}
+ style={{
+ width: '100px',
+ height: '100px',
+ outline: '1px solid rebeccapurple',
+ fontSize: '3rem',
+ }}
+ >
+ {i}
+ </div>
+ ))}
+ </div>
+ );
+};
diff --git a/packages/example/src/TenFrameTester/index.tsx b/packages/example/src/TenFrameTester/index.tsx
new file mode 100644
index 0000000000..1346d7470b
--- /dev/null
+++ b/packages/example/src/TenFrameTester/index.tsx
@@ -0,0 +1,10 @@
+import {AbsoluteFill, Audio, staticFile} from 'remotion';
+import ReactSvg from '../ReactSvg';
+
+// Short video that is fast to render for testing
+export const TenFrameTester: React.FC = () => (
+ <AbsoluteFill>
+ <ReactSvg transparent={false} />
+ <Audio src={staticFile('music.mp3')} />
+ </AbsoluteFill>
+);
diff --git a/packages/example/src/ThreeBasic/Mesh.tsx b/packages/example/src/ThreeBasic/Mesh.tsx
new file mode 100644
index 0000000000..e1d982e251
--- /dev/null
+++ b/packages/example/src/ThreeBasic/Mesh.tsx
@@ -0,0 +1,21 @@
+import React from 'react';
+import {interpolate, useCurrentFrame} from 'remotion';
+export const Mesh: React.FC = () => {
+ const frame = useCurrentFrame();
+ return (
+ <mesh
+ position={[0, 0, 0]}
+ rotation={[frame * 0.06 * 0.5, frame * 0.07 * 0.5, frame * 0.08 * 0.5]}
+ scale={interpolate(Math.sin(frame / 10), [-1, 1], [0.8, 1.2])}
+ >
+ <boxGeometry args={[100, 100, 100]} />
+ <meshStandardMaterial
+ color={[
+ Math.sin(frame * 0.12) * 0.5 + 0.5,
+ Math.cos(frame * 0.11) * 0.5 + 0.5,
+ Math.sin(frame * 0.08) * 0.5 + 0.5,
+ ]}
+ />
+ </mesh>
+ );
+};
diff --git a/packages/example/src/ThreeBasic/index.tsx b/packages/example/src/ThreeBasic/index.tsx
new file mode 100644
index 0000000000..48fbe6f96f
--- /dev/null
+++ b/packages/example/src/ThreeBasic/index.tsx
@@ -0,0 +1,23 @@
+import {ThreeCanvas} from '@remotion/three';
+import React from 'react';
+import {useVideoConfig} from 'remotion';
+import {Mesh} from './Mesh';
+
+const ThreeBasic: React.FC = () => {
+ const {width, height} = useVideoConfig();
+ return (
+ <ThreeCanvas
+ width={width}
+ height={height}
+ style={{backgroundColor: 'white'}}
+ orthographic={false}
+ camera={{fov: 75, position: [0, 0, 470]}}
+ >
+ <ambientLight intensity={0.15} />
+ <pointLight args={[undefined, 0.4]} position={[200, 200, 0]} />
+ <Mesh />
+ </ThreeCanvas>
+ );
+};
+
+export default ThreeBasic;
diff --git a/packages/example/src/Tiles/Tile.tsx b/packages/example/src/Tiles/Tile.tsx
new file mode 100644
index 0000000000..9dfaf9c2b4
--- /dev/null
+++ b/packages/example/src/Tiles/Tile.tsx
@@ -0,0 +1,52 @@
+import React from 'react';
+import {spring, SpringConfig, useCurrentFrame, useVideoConfig} from 'remotion';
+
+const size = 200;
+
+export const Tile: React.FC<{
+ index: number;
+}> = ({index}) => {
+ const videoConfig = useVideoConfig();
+ const frame = useCurrentFrame();
+ const springConfig: SpringConfig = {
+ damping: 100,
+ mass: 0.5,
+ stiffness: 10,
+ overshootClamping: true,
+ };
+ const scale = spring({
+ config: springConfig,
+ fps: videoConfig.fps,
+ frame,
+ from: 0,
+ to: 1,
+ });
+ const rotate = spring({
+ config: springConfig,
+ fps: videoConfig.fps,
+ from: 0,
+ frame,
+ to: 1,
+ });
+ return (
+ <div
+ style={{
+ height: size,
+ width: size,
+ position: 'absolute',
+ zIndex: 1000 - index,
+ left: videoConfig.width / 2 - size / 2,
+ top: videoConfig.height / 2 - size / 2,
+ borderRadius: 20,
+ background: 'radial-gradient(ellipse at bottom, white, #eee)',
+ boxShadow: '0 0 3px rgba(0, 0, 0, 0.1)',
+ transform: ` rotateZ(${index * 8 * rotate}deg) translateY(${
+ index * 15
+ }px) scale(${scale}`,
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ }}
+ />
+ );
+};
diff --git a/packages/example/src/Tiles/index.tsx b/packages/example/src/Tiles/index.tsx
new file mode 100644
index 0000000000..8dc295aa67
--- /dev/null
+++ b/packages/example/src/Tiles/index.tsx
@@ -0,0 +1,74 @@
+import {mix} from 'polished';
+import React from 'react';
+import {spring, SpringConfig, useCurrentFrame, useVideoConfig} from 'remotion';
+import {Tile} from './Tile';
+
+const BRAND_GRADIENT = ['#5851db', '#405de6'];
+const solidBrand = mix(0.5, BRAND_GRADIENT[0], BRAND_GRADIENT[1]);
+
+const Tiles: React.FC = () => {
+ const videoConfig = useVideoConfig();
+ const frame = useCurrentFrame();
+
+ const springConfig: SpringConfig = {
+ damping: 50,
+ mass: 0.1,
+ stiffness: 10,
+ overshootClamping: false,
+ };
+
+ const scale = spring({
+ config: springConfig,
+ from: 1,
+ to: 3.3,
+ fps: videoConfig.fps,
+ frame,
+ });
+ const outerScale = spring({
+ config: springConfig,
+ from: 1,
+ frame: Math.max(0, frame - 20),
+ to: 3,
+ fps: videoConfig.fps,
+ });
+ const rotate = spring({
+ config: springConfig,
+ fps: videoConfig.fps,
+ frame: Math.max(0, frame - 20),
+ from: -100,
+ to: 0,
+ });
+ return (
+ <div
+ style={{
+ backgroundColor: solidBrand,
+ flex: 1,
+ }}
+ >
+ <div
+ style={{
+ transform: `scale(${outerScale})`,
+ width: videoConfig.width,
+ height: videoConfig.height,
+ }}
+ >
+ <div
+ style={{
+ transform: `scale(${scale}) rotate(${rotate}deg)`,
+ width: videoConfig.width,
+ height: videoConfig.height,
+ }}
+ >
+ {new Array(40)
+ .fill(true)
+ .map((_, i) => i)
+ .map((i) => {
+ return <Tile key={i} index={i} />;
+ })}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default Tiles;
diff --git a/packages/example/src/Title/index.tsx b/packages/example/src/Title/index.tsx
new file mode 100644
index 0000000000..091782f6f8
--- /dev/null
+++ b/packages/example/src/Title/index.tsx
@@ -0,0 +1,68 @@
+import React from 'react';
+import {spring, SpringConfig, useCurrentFrame, useVideoConfig} from 'remotion';
+
+export const Title: React.FC<{
+ line1: string;
+ line2: string;
+}> = ({line1, line2}) => {
+ const {fps} = useVideoConfig();
+ const frame = useCurrentFrame();
+ const springConfig: SpringConfig = {
+ damping: 10,
+ mass: 0.1,
+ stiffness: 100,
+ overshootClamping: false,
+ };
+
+ const firstWord = spring({
+ config: springConfig,
+ from: 0,
+ to: 1,
+ fps,
+ frame,
+ });
+ const secondWord = spring({
+ config: springConfig,
+ frame: Math.max(0, frame - 5),
+ from: 0,
+ to: 1,
+ fps,
+ });
+ return (
+ <div
+ style={{
+ flex: 1,
+ justifyContent: 'center',
+ alignItems: 'center',
+ display: 'flex',
+ backgroundColor: 'white',
+ textAlign: 'center',
+ }}
+ >
+ <div
+ style={{
+ fontSize: 110,
+ fontWeight: 'bold',
+ fontFamily: 'SF Pro Text',
+ }}
+ >
+ <span
+ style={{
+ display: 'inline-block',
+ transform: `scale(${firstWord})`,
+ }}
+ >
+ {line1}
+ </span>
+ <span
+ style={{transform: `scale(${secondWord})`, display: 'inline-block'}}
+ >
+ {' '}
+ {line2}
+ </span>
+ </div>
+ </div>
+ );
+};
+
+export default Title;
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 7030412b81..c13b8485dd 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -475,6 +475,14 @@ export const Index: React.FC = () => {
height={850}
width={850}
/>
+ <Composition
+ id="image-in-lottie"
+ lazyComponent={() => import('./Lottie/ImageInLottie')}
+ durationInFrames={300}
+ fps={30}
+ height={850}
+ width={850}
+ />
<Composition
id="loader"
lazyComponent={() => import('./Lottie/Loader')}
diff --git a/packages/example/src/VideoOnCanvas/greenscreen.tsx b/packages/example/src/VideoOnCanvas/greenscreen.tsx
new file mode 100644
index 0000000000..e500f636e6
--- /dev/null
+++ b/packages/example/src/VideoOnCanvas/greenscreen.tsx
@@ -0,0 +1,68 @@
+import {useVideoConfig, Video} from 'remotion';
+import {useCallback, useEffect, useRef} from 'react';
+import React from 'react';
+import {AbsoluteFill} from 'remotion';
+
+export const Greenscreen: React.FC = () => {
+ const video = useRef<HTMLVideoElement>(null);
+ const canvas = useRef<HTMLCanvasElement>(null);
+ const {width, height} = useVideoConfig();
+
+ const onVideoFrame = useCallback(() => {
+ if (
+ !canvas.current ||
+ !video.current ||
+ !video.current.requestVideoFrameCallback
+ ) {
+ return;
+ }
+
+ const context = canvas.current.getContext('2d');
+
+ if (!context) {
+ return;
+ }
+
+ context.drawImage(video.current, 0, 0, width, height);
+ const imageFrame = context.getImageData(0, 0, width, height);
+ const {length} = imageFrame.data;
+
+ for (let i = 0; i < length; i += 4) {
+ const red = imageFrame.data[i + 0];
+ const green = imageFrame.data[i + 1];
+ const blue = imageFrame.data[i + 2];
+ if (green > 100 && red < 100 && blue < 100) {
+ imageFrame.data[i + 3] = 0;
+ }
+ }
+
+ context.putImageData(imageFrame, 0, 0);
+
+ video.current.requestVideoFrameCallback(() => onVideoFrame());
+ }, [height, width]);
+
+ useEffect(() => {
+ if (!video.current || !video.current.requestVideoFrameCallback) {
+ return;
+ }
+
+ video.current.requestVideoFrameCallback(() => onVideoFrame());
+ }, [onVideoFrame]);
+
+ return (
+ <AbsoluteFill>
+ <AbsoluteFill>
+ <Video
+ ref={video}
+ style={{opacity: 0}}
+ startFrom={300}
+ crossOrigin="anonymous"
+ src="https://remotion-assets.s3.eu-central-1.amazonaws.com/just-do-it.mp4"
+ />
+ </AbsoluteFill>
+ <AbsoluteFill>
+ <canvas ref={canvas} width={width} height={height} />
+ </AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/VideoOnCanvas/index.tsx b/packages/example/src/VideoOnCanvas/index.tsx
new file mode 100644
index 0000000000..236dd63e0c
--- /dev/null
+++ b/packages/example/src/VideoOnCanvas/index.tsx
@@ -0,0 +1,54 @@
+import {useVideoConfig, Video} from 'remotion';
+import {useCallback, useEffect, useRef} from 'react';
+import React from 'react';
+import {AbsoluteFill} from 'remotion';
+
+export const VideoOnCanvas: React.FC = () => {
+ const video = useRef<HTMLVideoElement>(null);
+ const canvas = useRef<HTMLCanvasElement>(null);
+ const {width, height} = useVideoConfig();
+
+ const onVideoFrame = useCallback(() => {
+ if (
+ !canvas.current ||
+ !video.current ||
+ !video.current.requestVideoFrameCallback
+ ) {
+ return;
+ }
+
+ const context = canvas.current.getContext('2d');
+
+ if (!context) {
+ return;
+ }
+
+ context.filter = 'grayscale(100%)';
+ context.drawImage(video.current, 0, 0, width, height);
+ video.current.requestVideoFrameCallback(() => onVideoFrame());
+ }, [height, width]);
+
+ useEffect(() => {
+ if (!video.current || !video.current.requestVideoFrameCallback) {
+ return;
+ }
+
+ video.current.requestVideoFrameCallback(() => onVideoFrame());
+ }, [onVideoFrame]);
+
+ return (
+ <AbsoluteFill>
+ <AbsoluteFill>
+ <Video
+ ref={video}
+ style={{opacity: 0}}
+ startFrom={300}
+ src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
+ />
+ </AbsoluteFill>
+ <AbsoluteFill>
+ <canvas ref={canvas} width={width} height={height} />
+ </AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/VideoSpeed/index.tsx b/packages/example/src/VideoSpeed/index.tsx
new file mode 100644
index 0000000000..1f6226fbfd
--- /dev/null
+++ b/packages/example/src/VideoSpeed/index.tsx
@@ -0,0 +1,18 @@
+import React from 'react';
+import {Video} from 'remotion';
+import framer from '../resources/framer-music.mp4';
+
+export const VideoSpeed: React.FC = () => {
+ return (
+ <div
+ style={{
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ flex: 1,
+ }}
+ >
+ <Video src={framer} playbackRate={2} startFrom={20} />
+ </div>
+ );
+};
diff --git a/packages/example/src/VideoTesting/index.tsx b/packages/example/src/VideoTesting/index.tsx
new file mode 100644
index 0000000000..f8842ce775
--- /dev/null
+++ b/packages/example/src/VideoTesting/index.tsx
@@ -0,0 +1,26 @@
+import {
+ OffthreadVideo,
+ Sequence,
+ staticFile,
+ useVideoConfig,
+ Video,
+} from 'remotion';
+
+export const VideoTesting: React.FC<{
+ codec: 'mp4' | 'webm';
+ offthread: boolean;
+}> = ({codec, offthread}) => {
+ const {durationInFrames} = useVideoConfig();
+ const videoMp4 = staticFile('framermp4withoutfileextension');
+ const videoWebm = staticFile('framer.webm');
+
+ const Comp = offthread ? OffthreadVideo : Video;
+
+ return (
+ <div>
+ <Sequence from={0} durationInFrames={durationInFrames}>
+ <Comp src={codec === 'mp4' ? videoMp4 : videoWebm} />
+ </Sequence>
+ </div>
+ );
+};
diff --git a/packages/example/src/entry.jsx b/packages/example/src/entry.jsx
new file mode 100644
index 0000000000..4eb49213b4
--- /dev/null
+++ b/packages/example/src/entry.jsx
@@ -0,0 +1,4 @@
+import {registerRoot} from 'remotion';
+import {Index} from './video-js';
+
+registerRoot(Index);
diff --git a/packages/example/src/index.tsx b/packages/example/src/index.tsx
new file mode 100644
index 0000000000..405a452d3b
--- /dev/null
+++ b/packages/example/src/index.tsx
@@ -0,0 +1,7 @@
+import {registerRoot} from 'remotion';
+import {Index} from './Video';
+
+// Should be able to defer registerRoot()
+setTimeout(() => {
+ registerRoot(Index);
+}, 500);
diff --git a/packages/example/src/lib/alias.ts b/packages/example/src/lib/alias.ts
new file mode 100644
index 0000000000..d4cbb03d9d
--- /dev/null
+++ b/packages/example/src/lib/alias.ts
@@ -0,0 +1 @@
+export const alias = 'alias';
diff --git a/packages/example/src/mdx-support.ts b/packages/example/src/mdx-support.ts
new file mode 100644
index 0000000000..3c8c141026
--- /dev/null
+++ b/packages/example/src/mdx-support.ts
@@ -0,0 +1 @@
+declare module '*.mdx';
diff --git a/packages/example/src/my-props.json b/packages/example/src/my-props.json
new file mode 100644
index 0000000000..df68a9c2e9
--- /dev/null
+++ b/packages/example/src/my-props.json
@@ -0,0 +1,3 @@
+{
+ "hello": "world"
+}
diff --git a/packages/example/src/resources/framer-24fps.mp4 b/packages/example/src/resources/framer-24fps.mp4
new file mode 100644
index 0000000000..b6f27dbfc8
Binary files /dev/null and b/packages/example/src/resources/framer-24fps.mp4 differ
diff --git a/packages/example/src/resources/framer-music.mp4 b/packages/example/src/resources/framer-music.mp4
new file mode 100644
index 0000000000..f8b324fcbb
Binary files /dev/null and b/packages/example/src/resources/framer-music.mp4 differ
diff --git a/packages/example/src/resources/framer.mp4 b/packages/example/src/resources/framer.mp4
new file mode 100644
index 0000000000..fd6fb9bd65
Binary files /dev/null and b/packages/example/src/resources/framer.mp4 differ
diff --git a/packages/example/src/resources/sound1.mp3 b/packages/example/src/resources/sound1.mp3
new file mode 100644
index 0000000000..0db7e1631b
Binary files /dev/null and b/packages/example/src/resources/sound1.mp3 differ
diff --git a/packages/example/src/resources/sound2.mp3 b/packages/example/src/resources/sound2.mp3
new file mode 100644
index 0000000000..63ddcba23f
Binary files /dev/null and b/packages/example/src/resources/sound2.mp3 differ
diff --git a/packages/example/src/ts-entry.tsx b/packages/example/src/ts-entry.tsx
new file mode 100644
index 0000000000..690fbfc5bf
--- /dev/null
+++ b/packages/example/src/ts-entry.tsx
@@ -0,0 +1,4 @@
+import {registerRoot} from 'remotion';
+import {Index} from './video-ts';
+
+registerRoot(Index);
diff --git a/packages/example/src/video-js.jsx b/packages/example/src/video-js.jsx
new file mode 100644
index 0000000000..346774ed60
--- /dev/null
+++ b/packages/example/src/video-js.jsx
@@ -0,0 +1,18 @@
+import React from 'react';
+import {Composition} from 'remotion';
+import {Framer} from './FramerJs';
+
+export const Index = () => {
+ return (
+ <>
+ <Composition
+ id="framer"
+ component={Framer}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ />
+ </>
+ );
+};
diff --git a/packages/example/src/video-ts.tsx b/packages/example/src/video-ts.tsx
new file mode 100644
index 0000000000..7bdaf251e3
--- /dev/null
+++ b/packages/example/src/video-ts.tsx
@@ -0,0 +1,17 @@
+import {Composition} from 'remotion';
+import {Framer} from './Framer';
+
+export const Index = () => {
+ return (
+ <>
+ <Composition
+ id="framer"
+ component={Framer}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ />
+ </>
+ );
+};
diff --git a/packages/example/src/webpack-override.ts b/packages/example/src/webpack-override.ts
new file mode 100644
index 0000000000..1c40ed5c73
--- /dev/null
+++ b/packages/example/src/webpack-override.ts
@@ -0,0 +1,59 @@
+import path from 'path';
+import {WebpackOverrideFn} from 'remotion';
+type Bundler = 'webpack' | 'esbuild';
+
+const WEBPACK_OR_ESBUILD = 'esbuild' as Bundler;
+
+export const webpackOverride: WebpackOverrideFn = (currentConfiguration) => {
+ const replaced = (() => {
+ if (WEBPACK_OR_ESBUILD === 'webpack') {
+ const {replaceLoadersWithBabel} = require(path.join(
+ __dirname,
+ '..',
+ '..',
+ 'example',
+ 'node_modules',
+ '@remotion/babel-loader'
+ ));
+ return replaceLoadersWithBabel(currentConfiguration);
+ }
+
+ return currentConfiguration;
+ })();
+ return {
+ ...replaced,
+ module: {
+ ...replaced.module,
+ rules: [
+ ...(replaced.module?.rules ?? []),
+ {
+ test: /\.mdx?$/,
+ use: [
+ {
+ loader: 'babel-loader',
+ options: {
+ presets: [
+ '@babel/preset-env',
+ [
+ '@babel/preset-react',
+ {
+ runtime: 'automatic',
+ },
+ ],
+ ],
+ },
+ },
+ 'mdx-loader',
+ ],
+ },
+ ],
+ },
+ resolve: {
+ ...replaced.resolve,
+ alias: {
+ ...replaced.resolve.alias,
+ lib: path.join(process.cwd(), 'src', 'lib'),
+ },
+ },
+ };
+};
diff --git a/packages/example/src/weird-css.css b/packages/example/src/weird-css.css
new file mode 100644
index 0000000000..98fab776e3
--- /dev/null
+++ b/packages/example/src/weird-css.css
@@ -0,0 +1,13 @@
+/*
+By injecting this we test how resilient the Remotion UI is to weird global CSS.
+*/
+
+html,
+* {
+ font-size: 100px;
+ color: red;
+ line-height: 5;
+ font-family: 'Comic Sans MS';
+ box-sizing: content-box;
+ background: green;
+}
diff --git a/packages/example/testlambda.sh b/packages/example/testlambda.sh
new file mode 100644
index 0000000000..f4ac9d4143
--- /dev/null
+++ b/packages/example/testlambda.sh
@@ -0,0 +1,10 @@
+cd ..
+cd lambda
+npm run buildlambda
+cd ..
+cd example
+pnpm exec remotion lambda policies validate
+pnpm exec remotion lambda functions rmall -f
+pnpm exec remotion lambda functions deploy --memory=3000
+pnpm exec remotion lambda sites create src/index.tsx --site-name=testbed
+pnpm exec remotion lambda render testbed react-svg --out-name=ggg.mp4 ggg.mp4 --log=verbose
diff --git a/packages/example/tsconfig.json b/packages/example/tsconfig.json
new file mode 100644
index 0000000000..794e9bdf6e
--- /dev/null
+++ b/packages/example/tsconfig.json
@@ -0,0 +1,20 @@
+{
+ "extends": "../tsconfig.settings.json",
+ "compilerOptions": {
+ "rootDir": "./src",
+ "outDir": "./dist",
+ "jsx": "react-jsx",
+ "skipLibCheck": true,
+ "allowSyntheticDefaultImports": true,
+ "paths": {
+ "lib/*": ["./src/lib/*"]
+ }
+ },
+ "include": ["src"],
+ "references": [
+ {"path": "../core"},
+ {"path": "../media-utils"},
+ {"path": "../babel-loader"},
+ {"path": "../three"}
+ ]
+}
diff --git a/packages/example/vitest.config.ts b/packages/example/vitest.config.ts
new file mode 100644
index 0000000000..7bc74d2df7
--- /dev/null
+++ b/packages/example/vitest.config.ts
@@ -0,0 +1,9 @@
+import {defineConfig} from 'vitest/config';
+
+export default defineConfig({
+ test: {
+ testTimeout: 90000,
+ maxConcurrency: 1,
+ threads: false,
+ },
+});