• 概要
@angular/animations

useAnimation

function
stable

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

API

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

useAnimation

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

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

Jump to details