animation
英 [??n??me??n]? ?美 [??n??me??n]??
n.生氣,活潑;動(dòng)畫片制作,動(dòng)畫片攝制;[影視]動(dòng)畫片
復(fù)數(shù): animations
iteration
英 [??t??re??n]? ?美 [??t??re??n]??
n.反復(fù);重述;重述的事;[計(jì)算機(jī)]循環(huán)
count
英 [ka?nt]? ?美 [ka?nt]??
n.總數(shù);數(shù)數(shù);罪狀;論點(diǎn)
v.數(shù)數(shù);計(jì)算總數(shù);把…算入;重要
第三人稱單數(shù): counts 復(fù)數(shù): counts 現(xiàn)在分詞: counting 過去式: counted 過去分詞: counted
css animation-iteration-count屬性 語法
animation-iteration-count屬性怎么用?
animation-iteration-count屬性是用于定義動(dòng)畫播放次數(shù)的;設(shè)置animation-iteration-count屬性的值為infinite,就可實(shí)現(xiàn)動(dòng)畫的無限循環(huán)播放。
作用:animation-iteration-count 屬性定義動(dòng)畫的播放次數(shù)。
語法:animation-iteration-count: n|infinite;
說明:n ? ?定義動(dòng)畫播放次數(shù)的數(shù)值。infinite ? ?規(guī)定動(dòng)畫應(yīng)該無限次播放。? ??
注釋:Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 屬性。
css 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>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例