Skip to content
#

intersection-observer

Here are 158 public repositories matching this topic...

react-lazy-load-image-component
jotamodesto
jotamodesto commented Apr 17, 2020

If I'm not mistaken the blur and black and white effects are related to the placeholderSrc, and opacity creates a blank space then transition to the loaded image.

It would be nice if I define placeholder prop, then the opacity effect could use it

Ex:
<LazyLoadImage src="some-big-image.jpg" placeholder={<div>Loading...</div>} effect="opacity" />

karottenreibe
karottenreibe commented May 20, 2019

I got weird typing errors after adding react-lazy-images to my project and didn't understand them until I read #13. Using the workaround described there works for me. I think, however, it would make this project easier to use for anyone using TypeScript if this requirement were clearly documented in the project's README. Otherwise you have to have the insight to look into the closed GitHub issues

Improve this page

Add a description, image, and links to the intersection-observer topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the intersection-observer topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.