• Overview
@angular/animations

AnimationReferenceMetadata

interface
deprecatedsince v20.2

Encapsulates a reusable animation, which is a collection of individual animation steps. Instantiated and returned by the animation() function, and passed to the useAnimation() function.

Deprecation warning

Use animate.enter or animate.leave instead. Intent to remove in a future version

API

    
      interface AnimationReferenceMetadata extends AnimationMetadata {}
    
    

animation

AnimationMetadata | AnimationMetadata[]

One or more animation step objects.

options

AnimationOptions | null

An options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation. Default delay is 0.

Jump to details