transition
function
Declares an animation transition which is played when a certain specified condition is met.
API
Usage Notes
function transition( stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: { [key: string]: any; } | undefined) => boolean), steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationTransitionMetadata;
transition
Declares an animation transition which is played when a certain specified condition is met.
@paramstateChangeExpr
string | ((fromState: string, toState: string, element?: any, params?: { [key: string]: any; } | undefined) => boolean)
A string with a specific format or a function that specifies when the animation transition should occur (see State Change Expression).
@paramsteps
AnimationMetadata | AnimationMetadata[]
One or more animation objects that represent the animation's instructions.
@paramoptions
AnimationOptions | null
An options object that can be used to specify a delay for the animation or provide custom parameters for it.
@returns
AnimationTransitionMetadata
Jump to details