useAnimation
function
Starts a reusable animation that is created using the animation()
function.
useAnimation(animation: AnimationReferenceMetadata, options: AnimationOptions | null = null): AnimationAnimateRefMetadata
Parameters
animation | The reusable animation to start. |
options | An options object that can contain a delay value for the start of the animation, and additional override values for developer-defined parameters. Optional. Default is |
Returns
AnimationAnimateRefMetadata
: An object that contains the animation parameters.
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/animations/useAnimation