AnimationReferenceMetadata
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
API
interface AnimationReferenceMetadata extends AnimationMetadata {
animation: AnimationMetadata | AnimationMetadata[];
options: AnimationOptions | null;
override type: AnimationMetadataType;
}
animation
AnimationMetadata | AnimationMetadata[]One or more animation step objects.
options
AnimationOptions | nullAn options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation. Default delay is 0.
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/AnimationReferenceMetadata