英 [nem]
n.?; ??? vt.?? ???; ?? ?? ??? ????? 3?? ??: names ??: names ?? ??: naming ?? ??: names ?? ??: names
CSS ????? ?? ?? ???
animation-name ??? ??? ??????
animation-name ??? ??? ??? ????? ??? ????? ???? ? ?????. ?? ??? animation-name???. : ?? ????? ??.
??: animation-name ??? @keyframes ?????? ??? ?????.
??: ??animation-name: keyframename|none;
??: keyframename? ???? ?????? ?? ????? ??? ?????. none? ????? ??? ???? ????(??????? ?????? ????? ? ??? ? ??).?
??: ?? animation-duration ??? ?????. ??? ??? ?? ??? 0? ?? ?????? ???? ????.
CSS ????? ?? ?? ?
<!DOCTYPE html> <html> <head> <style> div { width:100px; height:100px; background:red; position:relative; animation-name:mymove; animation-duration:5s; /* Safari and Chrome */ -webkit-animation-name:mymove; -webkit-animation-duration:5s; } @keyframes mymove { from {left:0px;} to {left:200px;} } @-webkit-keyframes mymove /* Safari and Chrome */ { from {left:0px;} to {left: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>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????