loadification
v1.1.1
Published
Standalone JS script to notify when images or videos are loaded within an element.
Downloads
7
Maintainers
Readme
loadification
Standalone JS script to notify when images or videos are loaded within an element.
Usage
var Loadification = require('loadification');
var myDomElement = document.getElementById('my-element');
var myLoadification = new Loadification(myDomElement);
myLoadification.listen(function(loadification){
console.log(loadification.domElement.getBoundingClientRect());
}, function(loadification, errorEvent){
console.log('Loadification error :(');
});