animation-duration

收藏:0   阅读:86

CSS3 animation-duration 属性


实例

设置动画在两秒内完成:

animation-duration:2s;
-webkit-animation-duration:2s; /* Safari and Chrome */


浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, 和 Opera支持 animation-duration 属性.

Safari和Chrome通过私有属性-WebKit-animation支持。

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


标签定义及使用说明

animation-duration属性定义动画完成一个周期需要多少秒或毫秒。

默认值: 0
继承: no
版本: CSS3
JavaScript 语法: object object.style.animationDuration="3s"


语法

animation-duration: time;

说明
time 指定动画播放完成花费的时间。默认值为 0,意味着没有动画效果。


相关文章

CSS3 tutorial: CSS3 动画

© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!