ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[CSS参考手册](http://css.doyoe.com/)»[属性列表](#)»[动画属性](#)» 相关内容: [**其它动画属性参考**选择其它项](#) - [animation](#) - [animation-name](#) - [animation-duration](#) - [animation-timing-function](#) - [animation-delay](#) - [animation-iteration-count](#) - [animation-direction](#) - [animation-play-state](#) - [animation-fill-mode](#) # animation - **版本:CSS3** - 继承性:无 ### 语法: **animation**:[[ [animation-name](#) ] || [ [animation-duration](#) ] || [ [animation-timing-function](#) ] || [ [animation-delay](#) ] || [ [animation-iteration-count](#) ] || [ [animation-direction](#) ]] [ , [ [animation-name](#) ] || [ [animation-duration](#) ] || [ [animation-timing-function](#) ] || [ [animation-delay](#) ] || [ [animation-iteration-count](#) ] || [ [animation-direction](#) ]]* **默认值**:看每个独立属性 **相关属性**:[ [animation-play-state](#) ] ### 取值: [ [animation-name](#) ]:检索或设置对象所应用的动画名称[ [animation-duration](#) ]:检索或设置对象动画的持续时间[ [animation-timing-function](#) ]:检索或设置对象动画的过渡类型[ [animation-delay](#) ]:检索或设置对象动画延迟的时间[ [animation-iteration-count](#) ]:检索或设置对象动画的循环次数[ [animation-direction](#) ]:检索或设置对象动画在循环中是否反向运动[ [animation-play-state](#) ]:检索或设置对象动画的状态。*w3c正考虑是否将该属性移除,因为动画的状态可以通过其它的方式实现,比如重设样式* ### 说明: **复合属性。检索或设置对象所应用的动画特效。** - 如果提供多组属性值,以逗号进行分隔。 - 对应的脚本特性为**animation**。 ### 兼容性: - 浅绿 = 支持 - 红色 = 不支持 - 墨绿 = 部分支持 - 橙色 = 实验性质 <table class="gdataform"><thead><tr><th><a href="#browser" title="查看本文档测试时所用浏览器版本">支持版本</a>\类型</th> <th><span class="browser-ie">IE</span></th> <th><span class="browser-firefox">Firefox</span></th> <th><span class="browser-safari">Safari</span></th> <th><span class="browser-chrome">Chrome</span></th> <th><span class="browser-opera">Opera</span></th> </tr></thead><tbody><tr><th>版本</th> <td class="unsupport">6.0-9.0</td> <td class="unsupport">4.0</td> <td rowspan="2" class="experimentsupport">5.1</td> <td rowspan="2" class="experimentsupport">13.0-16.0</td> <td rowspan="2" class="unsupport">11.50-11.60</td> </tr><tr><th>版本</th> <td class="experimentsupport">10.0</td> <td class="experimentsupport">5.0-9.0</td> </tr></tbody></table> ### 写法: | 内核类型 | 写法 | |-----|-----| | Webkit(Chrome/Safari) | -webkit-animation | | Gecko(Firefox) | -moz-animation | | Presto(Opera) | | | Trident(IE) | -ms-animation | | W3C | animation | ### 示例: CSS3 AnimationsCSS3 AnimationsCSS3 Animations Copyright © 2006-2012 [Doyoe](http://www.doyoe.com/). All Rights Reserved