Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into transitions

Jonny Burger379c5471b0eb
diff --cc packages/example/package.json
index b25663cd2a,d7af49384e..e658a99b4b
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@@ -26,19 -27,19 +27,18 @@@
"@babel/preset-react": "7.12.13",
"@mdx-js/react": "^1.6.21",
"@react-three/drei": "^7.22.7",
- "@remotion/babel-loader": "3.0.29",
- "@remotion/bundler": "3.0.29",
- "@remotion/cli": "3.0.29",
- "@remotion/eslint-config": "3.0.29",
- "@remotion/eslint-plugin": "3.0.29",
- "@remotion/gif": "3.0.29",
- "@remotion/lambda": "3.0.29",
- "@remotion/media-utils": "3.0.29",
- "@remotion/renderer": "3.0.29",
- "@remotion/three": "3.0.29",
- "@remotion/transitions": "3.0.29",
+ "@remotion/babel-loader": "3.2.12",
+ "@remotion/bundler": "3.2.12",
+ "@remotion/cli": "3.2.12",
+ "@remotion/eslint-config": "3.2.12",
+ "@remotion/eslint-plugin": "3.2.12",
+ "@remotion/gif": "3.2.12",
+ "@remotion/lambda": "3.2.12",
- "@remotion/lottie": "3.2.12",
+ "@remotion/media-utils": "3.2.12",
- "@remotion/paths": "3.2.12",
+ "@remotion/renderer": "3.2.12",
+ "@remotion/three": "3.2.12",
++ "@remotion/transitions": "3.2.12",
"@types/express": "^4.17.11",
- "@types/jest": "^27.4.0",
"@types/node": "^16.7.5",
"@types/react": "18.0.1",
"@types/styled-components": "^5.1.1",
diff --cc packages/example/src/Video.tsx
index da826a1b92,e54290e87f..662fa08a1b
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@@ -434,16 -433,66 +434,77 @@@ export const Index: React.FC = () =>
durationInFrames={600}
/>
</Folder>
- <Folder name="Transitions">
++
+ <Folder name="lottie">
+ <Composition
+ id="cybertruck"
+ lazyComponent={() => import('./Lottie/Cybertruck')}
+ durationInFrames={500}
+ fps={30}
+ height={850}
+ width={850}
+ />
+ <Composition
+ id="halloween-balloons"
+ lazyComponent={() => import('./Lottie/Halloween/Balloons')}
+ durationInFrames={90}
+ fps={30}
+ height={1080}
+ width={1080}
+ />
+ <Composition
+ id="halloween-pumpkin"
+ lazyComponent={() => import('./Lottie/Halloween/Pumpkin')}
+ durationInFrames={150}
+ fps={30}
+ height={1200}
+ width={1600}
+ />
+ <Composition
+ id="exploding-bird"
+ lazyComponent={() => import('./Lottie/ExplodingBird')}
+ durationInFrames={300}
+ fps={30}
+ height={850}
+ width={850}
+ />
+ <Composition
+ id="loader"
+ lazyComponent={() => import('./Lottie/Loader')}
+ durationInFrames={240}
+ fps={60}
+ height={576}
+ width={576}
+ />
+ </Folder>
+ <Folder name="paths">
+ <Composition
+ id="path-evolve"
+ lazyComponent={() => import('./Paths/PathEvolve')}
+ durationInFrames={500}
+ fps={30}
+ height={1080}
+ width={1080}
+ />
+ <Composition
+ id="path-morph"
+ lazyComponent={() => import('./Paths/PathMorph')}
+ durationInFrames={500}
+ fps={30}
+ height={1080}
+ width={1080}
+ />
+ </Folder>
++ <Folder name="transitions">
+ <Composition
+ id="basic"
+ component={BasicTransition}
+ height={1080}
+ width={1080}
+ durationInFrames={900}
+ fps={30}
+ />
+ </Folder>
</>
);
};
diff --cc pnpm-lock.yaml
index 376884bd8d,e5de2c4c4a..e833ff7361
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@@ -378,17 -378,18 +378,17 @@@ importers
'@babel/preset-react': 7.12.13
'@mdx-js/react': ^1.6.21
'@react-three/drei': ^7.22.7
- '@remotion/babel-loader': 3.0.29
- '@remotion/bundler': 3.0.29
- '@remotion/cli': 3.0.29
- '@remotion/eslint-config': 3.0.29
- '@remotion/eslint-plugin': 3.0.29
- '@remotion/gif': 3.0.29
- '@remotion/lambda': 3.0.29
- '@remotion/media-utils': 3.0.29
- '@remotion/renderer': 3.0.29
- '@remotion/three': 3.0.29
- '@remotion/transitions': 3.0.29
+ '@remotion/babel-loader': 3.2.12
+ '@remotion/bundler': 3.2.12
+ '@remotion/cli': 3.2.12
+ '@remotion/eslint-config': 3.2.12
+ '@remotion/eslint-plugin': 3.2.12
+ '@remotion/gif': 3.2.12
+ '@remotion/lambda': 3.2.12
- '@remotion/lottie': 3.2.12
+ '@remotion/media-utils': 3.2.12
- '@remotion/paths': 3.2.12
+ '@remotion/renderer': 3.2.12
+ '@remotion/three': 3.2.12
++ '@remotion/transitions': 3.2.12
'@types/babel__core': ^7.1.12
'@types/babel__template': ^7.4.0
'@types/express': ^4.17.11
@@@ -428,12 -427,12 +426,11 @@@
'@remotion/eslint-plugin': link:../eslint-plugin
'@remotion/gif': link:../gif
'@remotion/lambda': link:../lambda
- '@remotion/lottie': link:../lottie
'@remotion/media-utils': link:../media-utils
- '@remotion/paths': link:../paths
'@remotion/renderer': link:../renderer
'@remotion/three': link:../three
+ '@remotion/transitions': link:../transitions
'@types/express': 4.17.13
- '@types/jest': 27.4.0
'@types/node': 16.10.2
'@types/react': 18.0.1
'@types/styled-components': 5.1.14
@@@ -788,31 -864,6 +862,31 @@@
three: 0.134.0
typescript: 4.7.2
+ packages/transitions:
+ specifiers:
+ '@jonny/eslint-config': 3.0.259
+ '@types/react': ^18.0.12
+ '@types/react-dom': ^18.0.5
+ eslint: 8.13.0
+ prettier: ^2.0.5
+ prettier-plugin-organize-imports: ^2.3.4
+ react: 18.0.0
+ react-dom: 18.0.0
+ remotion: 3.0.29
+ typescript: ^4.5.5
+ dependencies:
- remotion: link:../core
++ remotion: 3.0.29_zpnidt7m3osuk7shl3s4oenomq
+ devDependencies:
+ '@jonny/eslint-config': 3.0.259_6hvhxfirl4y3p6nuemvvvbadcu
+ '@types/react': 18.0.12
+ '@types/react-dom': 18.0.5
+ eslint: 8.13.0
+ prettier: 2.6.2
+ prettier-plugin-organize-imports: 2.3.4_lbsuufegg2dnc4wh6qgf26kgdy
+ react: 18.0.0
+ react-dom: [email protected]
+ typescript: 4.7.2
+
packages:
/@algolia/autocomplete-core/1.5.2:
@@@ -7867,12 -9377,12 +9414,18 @@@
dependencies:
'@types/react': 18.0.1
+ /@types/react-dom/18.0.5:
+ resolution: {integrity: sha512-OWPWTUrY/NIrjsAPkAk1wW9LZeIjSvkXRhclsFO8CZcZGCOg2G0YZy4ft+rOyYxy8B7ui5iZzi9OkDebZ7/QSA==}
+ dependencies:
+ '@types/react': 18.0.12
+ dev: true
+
+ /@types/react-native/0.69.2:
+ resolution: {integrity: sha512-AVdWv4B8/++T5QQdnpveb2OVqD+0i8SOoT63ZRD+lNtQIYxzDak91V0k6olthy+H261d4t/MRBC1cfX1Rwsb6A==}
+ dependencies:
+ '@types/react': 18.0.1
+ dev: true
+
/@types/react-reconciler/0.26.4:
resolution: {integrity: sha512-bdx4aIBkQRDAnzc23JBFeZmVpmfLJHfHikmQukEt9qs4bQtq9f+PDbNwhR9u74FkIUyIDz1I1qJ8OF6RwadKpw==}
dependencies:
@@@ -8849,10 -10420,17 +10452,9 @@@
dev: false
/array-unique/0.3.2:
- resolution: {integrity: sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=}
+ resolution: {integrity: sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==}
engines: {node: '>=0.10.0'}
- dev: false
- /array.prototype.flatmap/1.2.5:
- resolution: {integrity: sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA==}
- engines: {node: '>= 0.4'}
- dependencies:
- call-bind: 1.0.2
- define-properties: 1.1.3
- es-abstract: 1.19.1
-
/array.prototype.flatmap/1.3.0:
resolution: {integrity: sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg==}
engines: {node: '>= 0.4'}
@@@ -17693,6 -20306,6 +20325,16 @@@
unist-util-visit: 1.4.1
dev: false
++ /remotion/3.0.29_zpnidt7m3osuk7shl3s4oenomq:
++ resolution: {integrity: sha512-FdBVOahaGgAq529EobcIQSFzhuJbzlxGGtfniYfxY+90QzPMQDZd4uG9PZlwVAyt//wD5ziZgqxxhVdGoNiGGQ==}
++ peerDependencies:
++ react: '>=16.8.0'
++ react-dom: '>=16.8.0'
++ dependencies:
++ react: 18.0.0
++ react-dom: [email protected]
++ dev: false
++
/renderkid/3.0.0:
resolution: {integrity: sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==}
dependencies: