欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

菊花轉(zhuǎn)動的jquery加載動畫效果

 更新時間:2018年08月19日 11:18:12   作者:酷jjs  
我們這次給大家?guī)淼氖顷P(guān)于用jquery實(shí)現(xiàn)菊花轉(zhuǎn)動的加載動畫效果,以及相關(guān)實(shí)例代碼,有興趣的朋友可以學(xué)習(xí)下。
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
 
  <title>Title</title>
  <link charset="utf-8" href="css/reset.css" rel="external nofollow" rel="stylesheet">
  <link charset="utf-8" href="css/main.css" rel="external nofollow" rel="stylesheet">
 
  <style>
    .box{width:200px;height:200px;background:#000000;}
    .xxloading{width:100%;height:100%;background:rgba(255,255,255,0.2);}
    .xxloading .xximg{width:100%;height:100%;background:url("../img/ico/loading2.gif") no-repeat center;}
  </style>
 
  <script src="js/jquery-1.8.3.min.js"></script>
  <script src="js/mychajian.js"></script> <!-- 添加jq的loading插件-->
</head>
<body>
 
 
 
 
<div class="box"></div>
 
 
 
<script>
 
  $(function () {
 
    $(".box").myloading(); //執(zhí)行l(wèi)oading動畫
  });
 
</script>
 
</body>
</html>

mychajian.js的插件內(nèi)容:

;(function($){
 
  $.fn.extend({
    myloading:function(obj){
 
      var str=[" <div class=\"xxloading\">",
        "    <div class=\"xximg\"></div>",
        "  </div>"].join("");
      
      return this.append(str);
 
    }
 
  });
})(jQuery);

效果圖顯示:

相關(guān)文章

最新評論