AnimationOptions

From Get docs
< @angular/animationsAngular/docs/9/api/animations/animationoptions


AnimationOptions

interface

Options that control animation styling and timing.

See more...

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

Child interfaces

  • AnimateChildOptions
  • AnimationQueryOptions


Description

The following animation functions accept AnimationOptions data:

  • transition()
  • sequence()
  • group()
  • query()
  • animation()
  • useAnimation()
  • animateChild()

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

Properties

Property Description
string Sets a time-delay for initiating an animation action. A number and optional time unit, such as "1s" or "10ms" for one second and 10 milliseconds, respectively.The default unit is milliseconds. Default value is 0, meaning no delay.
params?: { [name: string]: any; } A set of developer-defined parameters that modify styling and timing when an animation action starts. An array of key-value pairs, where the provided value is used as a default.


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/animations/AnimationOptions