@jswork/lazyload-img
v1.0.5
Published
Lazyload image.
Downloads
149
Readme
lazyload-img
Lazyload image.
installation
npm install @jswork/lazyload-img
usage
import LazyloadImg from '@jswork/lazyload-img';
LazyloadImg.init({
selector: '.lazyload',
interval: 300,
});
img.lazy {
background-color: #f5f5f5;
opacity: 0;
transition: opacity 0.6s;
}
types
/// <reference types="@jswork/lazyload-img/global.d.ts" />
license
Code released under the MIT license.