AnimationTransitionMetadata
封装一个转场动画。由 transition()
函数实例化并返回。
Encapsulates an animation transition. Instantiated and returned by the transition()
function.
interface AnimationTransitionMetadata extends AnimationMetadata {
expr: string | ((fromState: string, toState: string, element?: any, params?: {...}))
animation: AnimationMetadata | AnimationMetadata[]
options: AnimationOptions | null
// 继承自 animations/AnimationMetadata
type: AnimationMetadataType
}
属性
属性 | 说明 |
---|---|
expr: string | ((fromState: string, toState: string, element?: any, params?: { [key: string]: any; }) => boolean) | 用于描述状态变更的表达式。 An expression that describes a state change. |
animation: AnimationMetadata | AnimationMetadata[] | 该转场动画所包含的一个或多个动画对象。 One or more animation objects to which this transition applies. |
options: AnimationOptions | 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. |