Skip to content

clonalejandro/lazyload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazyload

A lazyload in javascript and css

How to use

Set your images like this

<img src="" data-src="imageYouWantToLoad">

Include files

<link href="lazyload.min.css" rel="stylesheet">
<script src="lazyload.min.js" type="text/javascript"></script>

Instance lazyload

const timeout = 250;
new LazyLoad(timeout);