合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
[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-timing-function - **版本:CSS3** - 继承性:无 ### 语法: **animation-timing-function**:linear | ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number>, <number>, <number>, <number>) [ , linear | ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number>, <number>, <number>, <number>) ]* **默认值**:ease ### 取值: linear:线性过渡。等同于贝塞尔曲线(0.0, 0.0, 1.0, 1.0)ease:平滑过渡。等同于贝塞尔曲线(0.25, 0.1, 0.25, 1.0)ease-in:由慢到快。等同于贝塞尔曲线(0.42, 0, 1.0, 1.0)ease-out:由快到慢。等同于贝塞尔曲线(0, 0, 0.58, 1.0)ease-in-out:由慢到快再到慢。等同于贝塞尔曲线(0.42, 0, 0.58, 1.0)cubic-bezier(<number>, <number>, <number>, <number>):特定的贝塞尔曲线类型,4个数值需在[0, 1]区间内 ### 说明: **检索或设置对象动画的过渡类型** - 如果提供多个属性值,以逗号进行分隔。 - 对应的脚本特性为**animationTimingFunction**。 ### 兼容性: - 浅绿 = 支持 - 红色 = 不支持 - 墨绿 = 部分支持 - 橙色 = 实验性质 <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-timing-function | | Gecko(Firefox) | -moz-animation-timing-function | | Presto(Opera) | | | Trident(IE) | -ms-animation-timing-function | | W3C | animation-timing-function | ### 示例: # 线性运动的太阳(您还可以定义其它的动画过渡类型,如ease-in,ease-out等): Copyright © 2006-2012 [Doyoe](http://www.doyoe.com/). All Rights Reserved