Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 653 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 653 Bytes

#unveil.js Modified version of the original Plugin by plugin by Luís Almeida.

  • Parameters are now passed via object
  • Added option to pass callback handler (will be executed after lazy loading):
var 
  logHandler = function() {
    console.log($(this).attr("src") + " loaded");
  },
  options = {
    "threshold": 300, 
    "callback":logHandler
  };

$("img").unveil(options);

Click [here] (http://htmlpreview.github.io/?https://github.com/dreimsbach/unveil/blob/master/index.html) for a demo.

###License Unveil is licensed under the MIT license.