Aljullu / react-lazy-load-image-component

React Component to lazy load images and components using a HOC to track window scroll position.
https://www.npmjs.com/package/react-lazy-load-image-component
MIT License
1.44k stars 109 forks source link

Load Animations are not working correctly #43

Closed TechWithTy closed 4 years ago

TechWithTy commented 5 years ago

Bug description Write a clear and concise description of what the bug is. When the component is scrolled into view and is loading the animations are not working correctly

To Reproduce Paste the code that is producing the issue

...Add lazy load to an image with     effect="blur"
 prop and it will not work i have tried all effects

List any other actions needed to reproduce the issue:

Link to a repo where this issue can be reproduced if available:

Expected behavior Write a clear and concise description of what you expected to happen versus what happened.

Screenshots If applicable, add screenshots to help explain your problem.

Technical details:

nuhman commented 5 years ago

I had the same issue and that's when I noticed you need to require the css file by: import 'react-lazy-load-image-component/src/effects/blur.css';

alexlpdj commented 4 years ago

I had the same issue and that's when I noticed you need to require the css file by: import 'react-lazy-load-image-component/src/effects/blur.css';

This made my day! thanks a lot!

Aljullu commented 4 years ago

I added this issue to the 'Common errors' section in the README so it's easier to discover. Will close this issue for now.