「Javascript/jqueryライブラリ/lazyload.js」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==lazyloadとは== 画像の遅延ロード ==download== wget https://raw.githubusercontent.com/tuupola/jquery_lazyload/master/jquery.lazyload.min.js ==サンプル==...」) |
(相違点なし)
|
2015年5月20日 (水) 03:18時点における最新版
lazyloadとは
画像の遅延ロード
download
wget https://raw.githubusercontent.com/tuupola/jquery_lazyload/master/jquery.lazyload.min.js
サンプル
<script src="jquery.js" type="text/javascript"></script> <script src="jquery.lazyload.js" type="text/javascript"></script> <img class="lazy" data-original="img/example.jpg" width="640" height="480"> <script type="text/javascript"> $(function() { $("img.lazy").lazyload({ effect : "fadeIn" }); }); </script>