Mbonea commited on
Commit
297f51d
·
1 Parent(s): 2422561

object cover

Browse files
Remotion-app/src/HelloWorld/ImageStream.jsx CHANGED
@@ -9,8 +9,13 @@ export default function ImageStream() {
9
  return (
10
  <TransitionSeries
11
  style={{
 
 
 
12
  color: 'white',
13
  position: 'absolute',
 
 
14
  zIndex: 0,
15
  objectFit: 'cover',
16
  }}
 
9
  return (
10
  <TransitionSeries
11
  style={{
12
+ top: '50%',
13
+ left: '50%',
14
+ transform: 'translate(-50%, -50%)',
15
  color: 'white',
16
  position: 'absolute',
17
+ width: '100%',
18
+ height: '100%',
19
  zIndex: 0,
20
  objectFit: 'cover',
21
  }}