animation-duration CSS 属性设置动画完成一个动画周期所需的时间。
| Web | Android | iOS | HarmonyOS | |||
|---|---|---|---|---|---|---|
| VDOM | Vapor | VDOM | Vapor | VDOM | Vapor | |
| 4.0 | x | 5.31 | x | 5.31 | x | 5.31 |
| Android(Vapor) | iOS(Vapor) | HarmonyOS(Vapor) |
|---|---|---|
| 5.31 | 5.31 | x |
animation-duration: <time>#;
| 名称 | 兼容性 | 描述 |
|---|---|---|
| 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