🎥 Make videos programmatically with React
add gif example
jeetissf5c3d8f568f1
diff --git a/packages/example/src/GifTest/index.tsx b/packages/example/src/GifTest/index.tsxnew file mode 100644index 0000000000..bcdfea308b--- /dev/null+++ b/packages/example/src/GifTest/index.tsx@@ -0,0 +1,38 @@+import {Gif, Sequence, useVideoConfig} from 'remotion';++const GifTest: React.FC = () => {+ const {width, height} = useVideoConfig();++ return (+ <div style={{flex: 1, backgroundColor: 'black'}}>+ <Sequence from={0} durationInFrames={50}>+ <Gif+ src="https://media.giphy.com/media/S9RJG5q2YnWd2nYLZ3/giphy.gif"+ 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/Video.tsx b/packages/example/src/Video.tsxindex 262d96fe1d..e7f049171f 100644--- a/packages/example/src/Video.tsx+++ b/packages/example/src/Video.tsx@@ -132,6 +132,14 @@ export const Index: React.FC = () => {fps={30}durationInFrames={10}/>+ <Composition+ id="gif"+ lazyComponent={() => import('./GifTest')}+ width={1080}+ height={1080}+ fps={30}+ durationInFrames={150}+ /><Compositionid="missing-img"component={MissingImg}