• Overview
@angular/animations

trigger

function

Creates a named animation trigger, containing a list of state() and transition() entries to be evaluated when the expression bound to the trigger changes.

  
    function trigger(  name: string,  definitions: AnimationMetadata[]): AnimationTriggerMetadata;
  
  

Creates a named animation trigger, containing a list of state() and transition() entries to be evaluated when the expression bound to the trigger changes.

@paramnamestring

An identifying string.

@paramdefinitionsAnimationMetadata[]

An animation definition object, containing an array of state() and transition() declarations.

Jump to details