欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網
          最全最豐富的資訊網站

          css3動畫只循環(huán)一次用什么屬性

          css3動畫只循環(huán)一次用“animation-iteration-count”屬性設置,該屬性可以規(guī)定動畫的執(zhí)行次數,當該屬性的值為1時,可設置動畫只循環(huán)一次;語法“元素{animation-iteration-count:1;}”。

          css3動畫只循環(huán)一次用什么屬性

          本教程操作環(huán)境:windows7系統、CSS3&&HTML5版、Dell G3電腦。

          css3動畫只循環(huán)一次用animation-iteration-count屬性設置。

          animation-iteration-count屬性可以規(guī)定動畫的執(zhí)行次數,定義動畫應該播放多少次。

          當該屬性的值為1時,可設置動畫只循環(huán)一次。

          示例:

          <!DOCTYPE html> <html> 	<head> 		<meta charset="utf-8"> 		<style> 			div { 				width: 100px; 				height: 100px; 				background: red; 				position: relative; 				animation: mymove 3s; 				animation-iteration-count: 1;  				/* Safari and Chrome */ 				-webkit-animation: mymove 3s; 				-webkit-animation-iteration-count: 1; 			}  			@keyframes mymove { 				0% { 					top: 0px; 				}  				50% { 					top: 200px; 				} 				100% { 					top: 0px; 				} 			}  			@-webkit-keyframes mymove{ /* Safari and Chrome */ 			 				0% { 					top: 0px; 				} 				 				50% { 					top: 200px; 				} 				100% { 					top: 0px; 				} 			} 		</style> 	</head> 	<body>  		<div></div>  	</body> </html>

          css3動畫只循環(huán)一次用什么屬性

          (學習視頻分享:css視頻教程、web前端)

          贊(0)
          分享到: 更多 (0)
          網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號