2.0.8 • Published 7 years ago

unveil2 v2.0.8

Weekly downloads
776
License
MIT
Repository
github
Last release
7 years ago

Travis Code Climate npm Bower

unveil2.js

A very lightweight plugin to lazy load images for jQuery
Based on luis-almeida/unveil.

Getting started

Install unveil2.js by downloading a copy of jquery.unveil2.min.js and add it to your page after jQuery:

<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="jquery.unveil2.min.js"></script>

And call the unveil plugin on the images you want to be lazily loaded:

$('img').unveil();

Note: If you load scripts at the bottom of the page, you don't have to wait for $.ready.

That's all folks!

More examples

CSS background, retina images, breakpoints and more: see online examples.

More configuration options

For a complete list of options, see API section.

Cross-browser tests

Sauce Labs

License

MIT

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0-alpha.4

9 years ago

2.0.0-alpha.3

9 years ago

2.0.0-alpha.2

9 years ago

2.0.0-alpha.1

9 years ago

2.0.0

9 years ago