1.0.1 • Published 7 years ago

replaceholder v1.0.1

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

replaceholder

Replace placeholder images with the correct image if it exists.

Javascript:
$('.replaceholder').replaceholder();

HTML:
<img src="/img/placeholders/100x100.png" data-src="source_image.png" alt="" class="replaceholder">

<div class="replaceholder" style="background-image: url('/img/placeholders/640x480.png');" data-type="bg" data-src="source_image.png">