useAnimation

function experimental

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

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–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/animations/useAnimation