BulletTime is a project mainly written in JavaScript, based on the BSD-4-Clause license.
simple lazy-loading images jquery library
bulletTime is a small lib for lazy loading images designed to load big images / low priority after user see and can interact with web page
$(".lazy-load").bulletTime({});
will lazy load images from each element with class .lazy-load
example element should look like this
<div data-src="/images/lulz.jpg" data-alt="lulz sec" class="load-lazy"></div>
the element will be replaced with tag after image loading is finished.
You can customize src in the element and alt, for default i used html5 ready data-
attributes d
$(".lazy-load").bulletTime({
src: 'alt'
});
will make it pull src of the image from alt attribute ;)
you can set
src
the attribute with image source,
alt
attribute with image alt and
img_class
attribute with custom classes that will be applied to img after creation
Jakub Oboza Email: [email protected]