填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

AnimationReferenceMetadata

封裝一個可複用的動畫,包括一組獨立的動畫步驟。由 animation() 函式返回,並傳給 useAnimation() 函式。

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.

      
      interface AnimationReferenceMetadata extends AnimationMetadata {
  animation: AnimationMetadata | AnimationMetadata[]
  options: AnimationOptions | null

  // 繼承自 animations/AnimationMetadata
  type: AnimationMetadataType
}
    

屬性

屬性說明
animation: AnimationMetadata | AnimationMetadata[]

一個或多個動畫步驟物件。

One or more animation step objects.

options: AnimationOptions | null

一個配置物件,包含一個延遲和一些由開發人員定義的引數,這些引數用於提供樣式的預設值,並可在呼叫時重寫。 預設延遲為 0。

An options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation. Default delay is 0.