Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

AnimationFactory

A factory object returned from the AnimationBuilder.build() method.

      
      abstract class AnimationFactory {
abstract create(element: any, options?: AnimationOptions): AnimationPlayer }

Methods

Creates an AnimationPlayer instance for the reusable animation defined by the AnimationBuilder.build() method that created this factory and attaches the new player a DOM element.

      
      abstract create(element: any, options?: AnimationOptions): AnimationPlayer
    
Parameters
element any

The DOM element to which to attach the player.

options AnimationOptions

A set of options that can include a time delay and additional developer-defined parameters.

Optional. Default is undefined.

Returns

AnimationPlayer