AnimationFactory

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

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

方法

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

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

The DOM element to which to attach the animation.

options AnimationOptions

可选. 默认值是 undefined.

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

返回值

AnimationPlayer