# animation-duration

animation-duration CSS 属性设置动画完成一个动画周期所需的时间。

# uni-app x 兼容性 ?

WebAndroidiOSHarmonyOS
VDOM Vapor VDOM Vapor VDOM Vapor
4.0x5.31x5.31x5.31

# App平台拍平(flatten)兼容性 ?

Android(Vapor) iOS(Vapor) HarmonyOS(Vapor)
5.31 5.31 x

# 语法

animation-duration: <time>#;

# animation-duration 的属性值

名称 兼容性 描述
auto
For time-based animations, auto is equivalent to a value of 0s (see below). For CSS scroll-driven animations, auto fills the entire timeline with the animation.

# 默认值

0s

# 参见