img-lazy
v1.0.2
Published
An image lazyload tool for web.
Downloads
11
Maintainers
Readme
img-lazy
website: https://github.com/tianwang8090/img-lazy
An image lazyload tool for web.
install & use
install with npm or srcipt
tag
npm i lazy-img -S
or <script src="https://unpkg.com/img-lazy"></script>
use
<script src="https://unpkg.com/img-lazy"></script>
<!-- set the real img source value in 'data-src' -->
<img data-src="x.jpg">
// with import
import lazyImg from "img-lazy";
lazyImg();