twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.87k stars 488 forks source link

Does LazyLoad work on components with 0 opacity? #247

Closed Kelbie closed 5 years ago

Kelbie commented 5 years ago

Hi, I am trying to lazy load images in a carousel which have an opacity of 0 when not being displayed. Is that possible with this library?

Kelbie commented 5 years ago

figure out a solution i did:

I just used display: none & opacity together to get the desired result.