You can install this package from NPM to get a component for displaying GIFs that synchronize with Remotions
The source of the GIF. Can be an URL or a local image - see Importing assets.
The display width.
The display height.
Must be one of these values:
'fill': The GIF will completely fill the container, and will be stretched if necessary. (default)
'contain': The GIF is scaled to fit the box, while aspect ratio is maintained.
'cover': The GIF completely fills the container and maintains it's aspect ratio. It will be cropped if necessary.
Callback that gets called once the GIF has loaded and finished processing. As its only argument, the callback gives the following object:
loaded: Will be always
width: Width of the GIF file in pixels.
height: Height of the GIF file in pixels.
delays: Array of timestamps of type
numbercontaining position of each frame.
frames: Array of frames of type
Allows to pass in custom CSS styles.