Mbonea commited on
Commit
9a5a73f
1 Parent(s): 75f8f69

overdid it

Browse files
Remotion-app/src/HelloWorld/ImageStream.jsx CHANGED
@@ -27,7 +27,12 @@ const ImageStream = React.memo(() => {
27
  {imageSequences.map((entry, index) => {
28
  return (
29
  <>
30
- <Images key={index} index={index} entry={entry} />;
 
 
 
 
 
31
  </>
32
  );
33
  })}
@@ -70,38 +75,33 @@ const Images = React.memo(({entry, index}) => {
70
  };
71
 
72
  return (
73
- <TransitionSeries.Sequence
74
- key={entry.start}
75
- durationInFrames={fps * (entry.end - entry.start)}
 
 
 
 
76
  >
77
- <GsapAnimation
78
- plugins={plugins}
 
79
  style={{
80
- BackgroundColor: 'black',
81
- }}
82
- className="bg-black"
83
- Timeline={gsapTimeline}
84
- >
85
- <Audio src={staticFile('sfx_1.mp3')} />
86
- <Img
87
- id="imagex"
88
- style={{
89
- filter: `url(#blur)`,
90
- objectPosition: 'center',
91
- objectFit: 'cover',
92
 
93
- position: 'absolute',
94
- top: '50%', // Center vertically
95
- left: '50%', // Center horizontally
96
- transform: 'translate(-50%, -50%)',
97
 
98
- width: 1080,
99
- height: 1920,
100
- }}
101
- src={staticFile(entry.name)}
102
- />
103
- </GsapAnimation>
104
- </TransitionSeries.Sequence>
105
  );
106
  });
107
 
 
27
  {imageSequences.map((entry, index) => {
28
  return (
29
  <>
30
+ <TransitionSeries.Sequence
31
+ key={entry.start}
32
+ durationInFrames={fps * (entry.end - entry.start)}
33
+ >
34
+ <Images key={index} index={index} entry={entry} />;
35
+ </TransitionSeries.Sequence>
36
  </>
37
  );
38
  })}
 
75
  };
76
 
77
  return (
78
+ <GsapAnimation
79
+ plugins={plugins}
80
+ style={{
81
+ BackgroundColor: 'black',
82
+ }}
83
+ className="bg-black"
84
+ Timeline={gsapTimeline}
85
  >
86
+ <Audio src={staticFile('sfx_1.mp3')} />
87
+ <Img
88
+ id="imagex"
89
  style={{
90
+ filter: `url(#blur)`,
91
+ objectPosition: 'center',
92
+ objectFit: 'cover',
 
 
 
 
 
 
 
 
 
93
 
94
+ position: 'absolute',
95
+ top: '50%', // Center vertically
96
+ left: '50%', // Center horizontally
97
+ transform: 'translate(-50%, -50%)',
98
 
99
+ width: 1080,
100
+ height: 1920,
101
+ }}
102
+ src={staticFile(entry.name)}
103
+ />
104
+ </GsapAnimation>
 
105
  );
106
  });
107