• Overview
@angular/animations

transition

function

Declares an animation transition which is played when a certain specified condition is met.

  
    function transition(  stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: { [key: string]: any; } | undefined) => boolean),  steps: AnimationMetadata | AnimationMetadata[],  options?: AnimationOptions | null): AnimationTransitionMetadata;
  
  

Declares an animation transition which is played when a certain specified condition is met.

@paramstateChangeExprstring | ((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).

@paramstepsAnimationMetadata | AnimationMetadata[]

One or more animation objects that represent the animation's instructions.

@paramoptionsAnimationOptions | null

An options object that can be used to specify a delay for the animation or provide custom parameters for it.

Jump to details