Lazy load/unload image(s) using Preact!
npm install preact-lazy-img
Lazy load images when the user scrolls over them.
NOTE: DO NOT USE IN PRODUCTION! STILL WORK IN PROGRESS!!!!
Foundation based on react-lazy
``shell`
$ npm install preact-lazy-img
`js
import {LazyImg, LazyImgWrapper } from 'preact-lazy-img';
`
`css``
.lazyload-placeholder {
background: gray;
height: 300px;
width: 300px;
display: inline-block;
}
- [x] Implement Travis CI.
- [ ] Write more unit tests surrounding LazyImg and LazyImgWrapper.
- [ ] Create CodePen Demo.
- [ ] Allow child LazyImg props to be overwrite parent LazyImgWrapper.
- [ ] Write more documentation around available props.
- [ ] Upgrade to Webpack 4. (low)