beekai-oss / react-simple-img

🌅 React lazy load images with IntersectionObserver API and Priority Hints
MIT License
989 stars 41 forks source link

Flashing image in wrong position #31

Closed davidfurlong closed 6 years ago

davidfurlong commented 6 years ago

Looking for advice whether this is us using this library wrong or a bug. I reload the page in the gif

ezgif-4-ab31add942

bluebill1049 commented 6 years ago

what's your placeholder? image or background colour?

if the issue was caused by placeholder styled, you could use imgClassName prop.

if not please paste your code here and i will take a look 👍

bluebill1049 commented 6 years ago

did you manage to resolve this issue? it's probably to do with your wrapper component style. let me know

davidfurlong commented 6 years ago

My bad, I'll take a look at your suggestions