AnimationTriggerMetadata

包含一个动画触发器。由 trigger() 函数实例化并返回。

Contains an animation trigger. Instantiated and returned by the trigger() function.

      
      interface AnimationTriggerMetadata extends AnimationMetadata {
  name: string
  definitions: AnimationMetadata[]
  options: {...}

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

属性

属性说明
name: string

触发器名称,用于把它和元素关联起来。在组件内要唯一。

The trigger name, used to associate it with an element. Unique within the component.

definitions: AnimationMetadata[]

一个动画定义对象,包含一组状态和转场声明。

An animation definition object, containing an array of state and transition declarations.

options: { params?: { [name: string]: any; }; } | null

一个选项对象,包含延迟和一些由开发人员定义的参数。这些参数用来提供样式的默认值,并且可以在调用时重写。 默认的延迟为 0。

An options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation. Default delay is 0.