dd

CSS3 animation-play-state 属性


实例

暂停动画:

animation-play-state:paused;
-webkit-animation-play-state:paused; /* Safari and Chrome */
运行一下 »

浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, 和 Opera支持animation-play-state 属性

Safari和Chrome通过私有属性 -webkit-animation-play-state支持。

注意: Internet Explorer 9及更早IE版本不支持animation-timing-function属性。

标签定义及使用说明

animation--play-state属性指定动画是否正在运行或已暂停。

注意:在JavaScript中使用此属性在一个周期中暂停动画。

默认值:running
继承:no
版本:CSS3
JavaScript 语法:object object.style.animationPlayState="paused"

语法

animation-play-state: paused|running;


描述测试
paused指定暂停动画实例 »
running指定正在运行的动画