Spec-Zone.ru › 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;
@deprecated

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

@paramanimationAnimationReferenceMetadata

The reusable animation to start.

@paramoptionsAnimationOptions | null

An options object that can contain a delay value for the start of the animation, and additional override values for developer-defined parameters.

@returnsAnimationAnimateRefMetadata

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API