animation-fill-mode 设置 CSS 动画在执行之前和之后如何将样式应用于其目标

当动画未执行时,动画将不会将任何样式应用于目标,而是已经赋予给该元件的 CSS 规则来显示该元件。这是默认值。
动画结束时将最后一个关键帧的值设置给 View。最后一个关键帧取决于 animation-direction 和 animation-iteration-count 的值:
| animation-direction | animation-iteration-count | last keyframe encountered |
|---|---|---|
| normal | even or odd | 100% or to |
| reverse | even or odd | 0% or from |
| alternate | even | 0% or from |
| alternate | odd | 100% or to |
| alternate-reverse | even | 100% or to |
| alternate-reverse | odd | 0% or from |
动画开始时将第一个关键帧的值设置给 View。第一个关键帧取决于 animation-direction 和 animation-iteration-count 的值:
| animation-direction | first relevant keyframe |
|---|---|
| normal or alternate | 0% or from |
| reverse or alternate-reverse | 100% or to |
动画将遵循 forwards 和 backwards 的规则,从而在动画开始与结束时将相应关键帧设置给 View。
| 初始值 | none |
| 适用元素 | all elements |
| 是否支持继承 | no |
| 是否支持动画 | no |
LCD tables only load in the browser