react-crossfade-image
react-crossfade-image copied to clipboard
Images jump between resolution in fullscreen
When the react-crossfade-image component uses the CSS objectFit:contain or objectFit:cover to fill its container, the images shift positions when the crossfade starts... in the below code this happens whether I run in fullscreen or not...
imageContainerStyle: { border: '2px solid green', background: 'green', width: '100%', height: '100%', margin: 'auto' }, crossfadeStyle: { border: '2px solid blue', background: 'pink', position: 'relative', width: '100%', height: '100%', objectFit: 'contain', }, ...
{this.container=container}}>
i see this bug too