填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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