angular / 5 / api / animations / useanimation.html

useAnimation

function experimental

function useAnimation(animation: AnimationReferenceMetadata, options: AnimationOptions | null = null): AnimationAnimateRefMetadata;

Description

useAnimation is an animation-specific function that is designed to be used inside of Angular's animation DSL language. It is used to kick off a reusable animation that is created using animation().

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/animations/useAnimation