MCPcopy Index your code
hub / github.com/angular/angular / transition

Function transition

packages/animations/src/animation_metadata.ts:1092–1105  ·  view source on GitHub ↗
(
  stateChangeExpr:
    | string
    | ((
        fromState: string,
        toState: string,
        element?: any,
        params?: {[key: string]: any},
      ) => boolean),
  steps: AnimationMetadata | AnimationMetadata[],
  options: AnimationOptions | null = null,
)

Source from the content-addressed store, hash-verified

1090 * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1091 **/
1092export function transition(
1093 stateChangeExpr:
1094 | string
1095 | ((
1096 fromState: string,
1097 toState: string,
1098 element?: any,
1099 params?: {[key: string]: any},
1100 ) => boolean),
1101 steps: AnimationMetadata | AnimationMetadata[],
1102 options: AnimationOptions | null = null,
1103): AnimationTransitionMetadata {
1104 return {type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options};
1105}
1106
1107/**
1108 * Produces a reusable animation that can be invoked in another animation or sequence,

Callers 15

AnimationCmpClass · 0.90
CmpClass · 0.90
CmpClass · 0.90
CmpClass · 0.90
CmpClass · 0.90
ContainerCmpClass · 0.90
Page1CmpClass · 0.90
Page2CmpClass · 0.90
RecurPageCmpClass · 0.90
CmpClass · 0.90
ParentCmpClass · 0.90
ChildCmpClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…