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 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</>
|
| 32 |
);
|
| 33 |
})}
|
|
@@ -70,38 +75,33 @@ const Images = React.memo(({entry, index}) => {
|
|
| 70 |
};
|
| 71 |
|
| 72 |
return (
|
| 73 |
-
<
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
>
|
| 77 |
-
<
|
| 78 |
-
|
|
|
|
| 79 |
style={{
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 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 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 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 |
|