Mbonea commited on
Commit
d2a124e
·
1 Parent(s): 52fe1f9

duration in frames changed

Browse files
Remotion-app/src/HelloWorld/ImageStream.jsx CHANGED
@@ -6,7 +6,7 @@ import imageSequences from './Assets/ImageSequences.json';
6
  import {TransitionSeries, linearTiming} from '@remotion/transitions';
7
 
8
  export default function ImageStream() {
9
- const {fps} = useVideoConfig();
10
 
11
  const frame = useCurrentFrame();
12
  return (
@@ -24,15 +24,11 @@ export default function ImageStream() {
24
  }}
25
  >
26
  {imageSequences.map((entry, index) => {
27
- const durationInFrames = (entry.end - entry.start) * fps;
28
 
29
  const zoom = interpolate(
30
  frame,
31
- [
32
- fps * entry.start,
33
- fps * entry.start + 2 * (durationInFrames / 4),
34
- fps * entry.end,
35
- ],
36
  [1, 1.2, 1]
37
  // {extrapolateRight: 'clamp'}
38
  );
 
6
  import {TransitionSeries, linearTiming} from '@remotion/transitions';
7
 
8
  export default function ImageStream() {
9
+ const {width, height, fps, durationInFrames} = useVideoConfig();
10
 
11
  const frame = useCurrentFrame();
12
  return (
 
24
  }}
25
  >
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
  );