#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] (https://htmlpreview.github.io/?https://github.com/dreimsbach/unveil/blob/master/index.html) for a demo.
###License Unveil is licensed under the MIT license.