è¯æ³•é¡¹ç›® | 说明 |
---|---|
åˆå§‹å€¼ | running |
适用于 | æ‰€æœ‰å…ƒç´ |
å¯å¦ç»§æ‰¿ | å¦ |
媒介 | 视觉 |
版本 | CSS3.0 |
running:默认值。è¿åŠ¨
paused:暂åœ
.play-state{ -webkit-animation:f1 2s 0.5s 2 linear forwards alternate; -moz-animation:f1 2s 0.5s 2 linear forwards alternate; position:relative; left:10px; width:100px; height:100px; margin:10px 0; overflow:hidden; } .play-state:hover{ -webkit-animation-play-state:paused; -moz-animation-play-state:paused; } @-webkit-keyframes f1{ 0%{left:10px;} 100%{left:500px;} } @-moz-keyframes f1{ 0%{left:10px;} 100%{left:500px;} }
<div class="demo_box play-state">é¼ æ ‡ç§»è¿‡æ¥æˆ‘å°±åœï¼Œç§»èµ°å°±è¿åŠ¨ï¼Œå¥½å¬è¯å“¦ï¼</div>
IE | Firefox | Opera | Safari | Chrome |
---|---|---|---|---|
IE 10+ | Firefox 3.5+ | ç›®å‰æš‚æ— ç‰ˆæœ¬æ”¯æŒ | Safari 10+ | Chrome 2.0+ |