lazyimg

0.1.6 • Public • Published

lazyimg

NOTE

this lib depend on appearjs.

APIS

  • lib.img.fire()
  • lib.img.logConfig()

demo

<style>
.my-img {
  margin-bottom: 10px;
  width: 300px;
  height: 300px;
}
</style> 
 
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">    
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
<img class="my-img" img-src="http://gw.alicdn.com/tfscom/TB1hScdIFXXXXX7aXXXlQjeFXXX-1024-769.jpg">
    
<script>
  lib.img.fire();
</script> 

Readme

Keywords

none

Package Sidebar

Install

npm i lazyimg

Weekly Downloads

1

Version

0.1.6

License

MIT

Last publish

Collaborators

  • mr.raindrop