Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

useAnimation

Starts a reusable animation that is created using the animation() function.

      
      useAnimation(animation: AnimationReferenceMetadata, options: AnimationOptions = null): AnimationAnimateRefMetadata
    
Parameters
animation AnimationReferenceMetadata

The reusable animation to start.

options AnimationOptions

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 null.

Returns

AnimationAnimateRefMetadata: An object that contains the animation parameters.