填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

AnimationFactory

AnimationBuilder.build() 方法返回的工厂对象。。

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

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

方法

创建一个 AnimationPlayer 实例,是由 AnimationBuilder.build() 方法定义的可复用动画。把这个新的播放器实例附加到一个 DOM 元素上。

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
    
参数
element any

要将动画附加到的 DOM 元素。

The DOM element to which to attach the animation.

options AnimationOptions

一组选项,可以包括延迟时间和其他由开发人员定义的参数。

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

可选. 默认值是 `undefined`.
返回值

AnimationPlayer