AnimationTransitionMetadata

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

封装一个转场动画。由 transition() 函数实例化并返回。

interface AnimationTransitionMetadata extends AnimationMetadata { expr: string | ((fromState: string, toState: string, element?: any, params?: {...})) animation: AnimationMetadata | AnimationMetadata[] options: AnimationOptions | null // 继承自 animations/AnimationMetadata type: AnimationMetadataType }

属性

属性名类型说明
expr

An expression that describes a state change.

用于描述状态变更的表达式。

animation

One or more animation objects to which this transition applies.

该转场动画所包含的一个或多个动画对象。

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。