animation
英[??n??me??n] 美[??n??me??n]
n. 怒っている、活発、漫畫制作、漫畫撮影、[映畫とテレビ] アニメーション
複數(shù)形: animes
iteration
## English[??t??re??n] US[??t??re??n] n. 繰り返す; 言い直す; 物事を言い直す; [コンピューター] ] サイクル#count
UK[ka?nt] US[ka?nt] n.合計(jì)數(shù); カウント; カウント; 引數(shù) v. 數(shù)える; 合計(jì)を計(jì)算する; count...; 重要三人稱単數(shù)形: counts 複數(shù)形: counts 現(xiàn)在分詞: counting 過去形: counted 過去分詞: counted
css3 animation-iteration-count屬性 構(gòu)文
関數(shù):animation-iteration-count 屬性は、アニメーションが再生される回?cái)?shù)を定義します。
構(gòu)文: animation-iteration-count: n|infinite;
説明: n アニメーションの再生回?cái)?shù)を定義します。無限は、アニメーションを無限に再生することを指定します。
注: Internet Explorer 9 以前のバージョンでは、animation-iteration-count プロパティがサポートされていません。
無限ループ再生は、CSS3 のanimation-iteration-count 屬性の値を無限に設(shè)定することで実行できます。アニメーションの再生時(shí)間をカスタマイズすることもできます
css3 animation-iteration-count屬性 例
<!DOCTYPE html> <html> <head> <style> div { width:100px; height:100px; background:red; position:relative; animation:mymove 3s; animation-iteration-count:3; /* Safari and Chrome */ -webkit-animation:mymove 3s; -webkit-animation-iteration-count:3; } @keyframes mymove { from {top:0px;} to {top:200px;} } @-webkit-keyframes mymove /* Safari and Chrome */ { from {top:0px;} to {top:200px;} } </style> </head> <body> <p><strong>注釋:</strong>Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 屬性。</p> <div></div> </body> </html>
インスタンスの実行 ?
[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します