animation
英[??n??me??n] 美[??n??me??n]
n. 怒っている、活発、漫畫制作、漫畫撮影、[映畫とテレビ] アニメーション
複數(shù)形: animes
duration
英[dju?re??n] 美[du?re??n]
n.期間、期間、期間 ;(時間) 持続性、永続性、継続性;[音韻論] 音の長さ、音の長さ
複數(shù)形:durations
css animation-duration屬性 構(gòu)文
アニメーション期間屬性を使用するにはどうすればよいですか?
animation-duration 屬性は、アニメーションが 1 サイクルを完了するのに必要な時間を秒またはミリ秒で定義するために使用されます?;镜膜蕵?gòu)文は、animation-duration: time です。
関數(shù): animation-duration 屬性は、アニメーションがサイクルを完了するのに必要な時間を秒またはミリ秒?yún)g位で定義します。
構(gòu)文: animation-duration: time
説明: time は、アニメーションが完了するまでにかかる時間を指定します。デフォルト値は 0 で、アニメーション効果がないことを意味します。
注: Internet Explorer 9 以前のバージョンでは、animation-duration 屬性がサポートされていません。
css animation-duration屬性 例
<!DOCTYPE html> <html> <head> <style> div { width:100px; height:100px; background:red; position:relative; animation:mymove infinite; animation-duration:2s; /* Safari and Chrome */ -webkit-animation:mymove infinite; -webkit-animation-duration:2s; } @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-name 屬性。</p> <div></div> <p><b>注釋:</b>始終規(guī)定 animation-duration 屬性,否則時長為 0,就不會播放動畫了。</p> </body> </html>
インスタンスの実行 ?
[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します