We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165a619 commit af38d08Copy full SHA for af38d08
src/components/LazyLoadImage.jsx
@@ -71,8 +71,8 @@ class LazyLoadImage extends React.Component {
71
className={wrapperClassName + ' lazy-load-image-background ' +
72
effect + loadedClassName}
73
style={{
74
- backgroundImage: 'url( ' + placeholderSrc + ')',
75
- backgroundSize: '100% 100%',
+ backgroundImage: loaded ? '' : 'url( ' + placeholderSrc + ')',
+ backgroundSize: loaded ? '' : '100% 100%',
76
color: 'transparent',
77
display: 'inline-block',
78
height: height,
0 commit comments