標籤: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...