1.0.5 • Published 4 years ago
js-img-lazyloading v1.0.5
lazy loading image using javascript
find the example below done by incuding the js and css files in this package
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="node_modules/js-img-lazyloading/style.css">
</head>
<body>
<div class="placeholder" data-large="https://cdn-images-1.medium.com/max/1800/1*sg-uLNm73whmdOgKlrQdZA.jpeg" >
<img src="https://cdn-images-1.medium.com/freeze/max/27/1*sg-uLNm73whmdOgKlrQdZA.jpeg?q=20" class="img-small">
<div style="padding-bottom: 66.6%;"></div>
</div>
<script type="text/javascript" src="node_modules/js-img-lazyloading/script.js"> </script>
</body>
</html>