AnimationStyleMetadata

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

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

      
      interface AnimationStyleMetadata extends AnimationMetadata {
  styles: '*' | {...}
  offset: number | null

  // 继承自 animations/AnimationMetadata
  type: AnimationMetadataType
}
    

属性

属性说明
styles: '*' | { [key: string]: string | number; } | Array<{ [key: string]: string | number; } | '*'>

一组 CSS 样式属性。

A set of CSS style properties.

offset: number | null

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

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