Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

AnimationTransitionMetadata

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

  // inherited from animations/AnimationMetadata
  type: AnimationMetadataType
}
    

Properties

Property Description
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

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