AnimationStyleMetadata

Encapsulates an animation style. Instantiated and returned by the style() function.

封装一个动画样式。由 style() 函数实例化并返回。

interface AnimationStyleMetadata extends AnimationMetadata { styles: '*' | {...} offset: number | null // 继承自 animations/AnimationMetadata type: AnimationMetadataType }

属性

属性名类型说明
styles

A set of CSS style properties.

一组 CSS 样式属性。

offset

A percentage of the total animate time at which the style is to be applied.

应用该样式的那个时间点在总动画时序中的百分比。