frame
Browse files
Remotion-app/src/HelloWorld/ImageStream.jsx
CHANGED
@@ -26,20 +26,10 @@ export default function ImageStream() {
|
|
26 |
{imageSequences.map((entry, index) => {
|
27 |
const durationInFrames = (entry.end - entry.start) * fps;
|
28 |
|
29 |
-
const driver = spring({
|
30 |
-
frame,
|
31 |
-
fps,
|
32 |
-
});
|
33 |
const zoom = interpolate(
|
34 |
-
|
35 |
-
[
|
36 |
-
|
37 |
-
durationInFrames / 4,
|
38 |
-
2 * (durationInFrames / 4),
|
39 |
-
3 * (durationInFrames / 4),
|
40 |
-
durationInFrames,
|
41 |
-
],
|
42 |
-
[1, 1.2, 1, 1.2, 1],
|
43 |
{extrapolateRight: 'clamp'}
|
44 |
);
|
45 |
|
|
|
26 |
{imageSequences.map((entry, index) => {
|
27 |
const durationInFrames = (entry.end - entry.start) * fps;
|
28 |
|
|
|
|
|
|
|
|
|
29 |
const zoom = interpolate(
|
30 |
+
frame,
|
31 |
+
[0, 2 * (durationInFrames / 4), durationInFrames],
|
32 |
+
[1, 1.2, 1],
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
{extrapolateRight: 'clamp'}
|
34 |
);
|
35 |
|