# animation-duration

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

# uni-app x 兼容性 ?

Android(VDOM) Android(Vapor) iOS(VDOM) iOS(Vapor) HarmonyOS(VDOM) HarmonyOS(Vapor)
x 5.25 x 5.25 x 5.25

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

Android(Vapor) iOS(Vapor) HarmonyOS(Vapor)
x x 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

# 参见