This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

AnimationOptions

npm Package @angular/animations
Module import { AnimationOptions } from '@angular/animations';
Source animations/src/animation_metadata.ts

Interface Overview

      
      interface AnimationOptions { 
  delay?: number | string
  params?: {...}
}
    

Description

AnimationOptions represents options that can be passed into most animation DSL methods. When options are provided, the delay value of an animation can be changed and animation input parameters can be passed in to change styling and timing data when an animation is started.

The following animation DSL functions are able to accept animation option data:

Programmatic animations built using the AnimationBuilder service also make use of AnimationOptions.

Child Interfaces

Members

      
      delay?: number | string
    

      
      params?: {
    [name: string]: any;
}