AnimationTriggerMetadata

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

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

interface AnimationTriggerMetadata extends AnimationMetadata { name: string definitions: AnimationMetadata[] options: {...} // 继承自 animations/AnimationMetadata type: AnimationMetadataType }

属性

属性名类型说明
name

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

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

definitions

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

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

options

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

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