Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images jump between resolution in fullscreen #14

Open
3pin opened this issue Jan 28, 2020 · 1 comment
Open

Images jump between resolution in fullscreen #14

3pin opened this issue Jan 28, 2020 · 1 comment

Comments

@3pin
Copy link

3pin commented Jan 28, 2020

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}}>
@avelaga
Copy link

avelaga commented May 19, 2020

i see this bug too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants