“Css3 pr animation play state”的版本间差异
本页内容
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{DISPLAYTITLE:animation-play-state}}[[Category: | {{DISPLAYTITLE:animation-play-state}}[[Category:css3 animations|10]] | ||
= CSS3 animation-play-state 属性 = | = CSS3 animation-play-state 属性 = | ||
第58行: | 第58行: | ||
{| class="table table-striped table-hover" | {| class="table table-striped table-hover" | ||
! 属性 | ! 属性 | ||
! | ! Chrome | ||
! | ! Internet Explorer / Edge | ||
! | ! Firefox | ||
! | ! Safari | ||
! | ! Opera | ||
|- | |- | ||
| animation-play-state | | animation-play-state |
2022年8月19日 (五) 04:39的版本
CSS3 animation-play-state 属性
暂停动画:
示例
animation-play-state:paused;
-webkit-animation-play-state:paused; /* Safari 和 Chrome */
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
紧跟在 -webkit-, -ms- 或 -moz- 前的数字为支持该前缀属性的第一个浏览器版本号。
属性 | Chrome | Internet Explorer / Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
animation-play-state | 43.04.0 -webkit- | 10.0 | 16.05.0 -moz- | 9.04.0 -webkit- | 30.015.0 -webkit-12.0 -o- |
标签定义及使用说明
animation--play-state属性指定动画是否正在运行或已暂停。
注意:在JavaScript中使用此属性在一个周期中暂停动画。
默认值: | running |
继承: | no |
版本: | CSS3 |
JavaScript 语法: | object object.style.animationPlayState="paused" |
语法
animation-play-state: paused|running;
值 | 描述 | 测试 |
---|---|---|
paused | 指定暂停动画 | 测试 » |
running | 指定正在运行的动画 | 测试 » |
相关文章
CSS3 教程: CSS3 动画