一些css3的特效 javascript的window對象 定時器 延時器等ing...

來源:互聯網
上載者:User

標籤:color   over   cti   屬性   normal   class   http   ack   doc   

風車轉動代碼

 1 <!DOCTYPE html> 2 <html> 3     <head> 4         <meta charset="utf-8" /> 5         <title></title> 6         <style type="text/css"> 7         /*建立動畫名稱*/ 8         @keyframes rotate{             9             0% {10                 transform:rotate(0deg);/*旋轉*/11                 12                 /*matrix() 方法需要六個參數,包含數學函數,允許您:旋轉、縮放、移動以及傾斜元素。有問題需請教老師*/13                 /*-webkit-transform:matrix(0,0.5,0,10,20,20);*/    14             }15             100%{16                 /*旋轉*/17                 transform:rotate(360deg);  18             }19         }20         img:hover{21             /*22             @keyframes 規定動畫。 23             animation 所有動畫屬性的簡寫屬性,除了 animation-play-state 屬性。 24             animation-name 規定 @keyframes 動畫的名稱。 25             animation-duration 完成一個周期所花費的秒或毫秒。預設是 0。 26             animation-timing-function 規定動畫的速度,預設是 "ease" 勻速是linear。 27             animation-delay 規定動畫何時開始。預設是 0。 28             animation-iteration-count 規定動畫被播放的次數,預設是 1,不限infinite。 29             animation-direction 規定動畫是否在下一周期逆向地播放。預設是 "normal",逆向alternate。 30             animation-play-state 規定動畫是否正在運行或暫停。預設是 "running",停止paused。 31             animation-fill-mode 規定對象動畫時間之外的狀態。  32              * */33             34             /*animation-name: rotate;35             animation-duration: 2s;36             animation-timing-function: linear;37             animation-delay: 0s;38             animation-iteration-count: infinite;39             animation-direction: normal;40             animation-play-state: running;*/41 42             /*animation 屬性值 統一文法*/43             animation:rotate 1.5s linear 0s infinite normal running;44         }45         img{46             animation-play-state:paused;47             width: 500px;48             height: 500px;49         }50         51         </style>52     </head>53 <body>54     <img src="img/fengche2.png">55 </body>56 </html>

風車轉動效果

一些css3的特效 javascript的window對象 定時器 延時器等ing...

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.