CSS3 animation-play-state ÊôÐÔ
ʵÀý
ÔÝÍ£¶¯»£º
div
{
animation-play-state:paused;
-webkit-animation-play-state:paused; /* Safari ºÍ Chrome */
}
ä¯ÀÀÆ÷Ö§³Ö
| IE | Firefox | Chrome | Safari | Opera |
|---|---|---|---|---|
Internet Explorer 10¡¢Firefox ÒÔ¼° Opera Ö§³Ö animation-play-state ÊôÐÔ¡£
Safari ºÍ Chrome Ö§³ÖÌæ´úµÄ -webkit-animation-play-state ÊôÐÔ¡£
×¢ÊÍ£ºInternet Explorer 9 ÒÔ¼°¸üÔçµÄ°æ±¾²»Ö§³Ö animation-play-state ÊôÐÔ¡£
¶¨ÒåºÍÓ÷¨
animation-play-state ÊôÐԹ涨¶¯»ÕýÔÚÔËÐл¹ÊÇÔÝÍ£¡£
×¢ÊÍ£ºÄú¿ÉÒÔÔÚ JavaScript ÖÐʹÓøÃÊôÐÔ£¬ÕâÑù¾ÍÄÜÔÚ²¥·Å¹ý³ÌÖÐÔÝÍ£¶¯»¡£
| ĬÈÏÖµ£º | running |
|---|---|
| ¼Ì³ÐÐÔ£º | no |
| °æ±¾£º | CSS3 |
| JavaScript Óï·¨£º | object.style.animationPlayState="paused" |
Óï·¨
animation-play-state: paused|running;
| Öµ | ÃèÊö | ²âÊÔ |
|---|---|---|
| paused | ¹æ¶¨¶¯»ÒÑÔÝÍ£¡£ | ²âÊÔ |
| running | ¹æ¶¨¶¯»ÕýÔÚ²¥·Å¡£ | ²âÊÔ |
Ïà¹ØÒ³Ãæ
CSS3 ½Ì³Ì£ºCSS3 ¶¯»