W3cubDocs

/Angular

useAnimation

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

Deprecation warning

Use animate.enter or animate.leave instead. Intent to remove in v23

API

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

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/animations/useAnimation