HTML-波浪水球

來源:互聯網
上載者:User

標籤:html   波浪   水球   

波浪水球執行個體


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/73/8A/wKioL1YA-qbgMfVnAABgXZ5OvBE540.jpg" title="QQ圖片20150922144218.png" alt="wKioL1YA-qbgMfVnAABgXZ5OvBE540.jpg" />


1.需要圖片


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/73/8A/wKioL1YA-XDQA0IHAACGbT0PuOg051.gif" title="bg.gif" alt="wKioL1YA-XDQA0IHAACGbT0PuOg051.gif" />

2.需要JQuery,jquery-2.1.4.min.js


以下為源碼:


<!doctype html>

<html lang="en">

 <head>

  <meta charset="UTF-8">

  <meta name="Generator" content="EditPlus">

  <meta name="Author" content="">

  <meta name="Keywords" content="">

  <meta name="Description" content="">

  <title>波浪水球</title>

  <style type="text/css">

*{margin:0;padding:0;}

body{position:relative}

 

.bg{width:200px;height:200px;background:url("images/bg.gif") no-repeat;

background-position:-15px -51px;position:absolute;top:68px;left:72px;border-radius:50%;}

.circle:hover {}

.outline{width:200px;height:200px;border-radius:50%;border:2px solid #76BFDE;

position:absolute;top:66px;left:70px;}

.circle{width:250px;height:250px;transition:all 8s ease-in-out;border:8px solid #fff;

   border-right-color: #76BFDE ;

position:fixed;top:35px;left:39px;overflow:auto;

    /* border-bottom-color: #A0D0DE;  */

   border-radius: 50%;}

  </style>

 </head>

 <body>

 

<div class="bg"></div>

<div class="outline"></div>

<div class="circle"></div>

<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>

<script type="text/javascript">

$(function(){

$(".bg").animate({

backgroundPositionY:"-260px"

},10000);

$(".circle").css(

"transform","rotate(1440deg)"

);

});

</script>

 </body>


</html>


本文出自 “wennuanyiran” 部落格,請務必保留此出處http://dingzhaoqiang.blog.51cto.com/5601059/1697090

HTML-波浪水球

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.