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

AnimationTriggerMetadata

包含一個動畫觸發器。由 trigger() 函式實例化並返回。

Contains an animation trigger. Instantiated and returned by the trigger() function.

      
      interface AnimationTriggerMetadata extends AnimationMetadata {
  name: string
  definitions: AnimationMetadata[]
  options: {...}

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

屬性

屬性說明
name: string

觸發器名稱,用於把它和元素關聯起來。在元件內要唯一。

The trigger name, used to associate it with an element. Unique within the component.

definitions: AnimationMetadata[]

一個動畫定義物件,包含一組狀態和轉場宣告。

An animation definition object, containing an array of state and transition declarations.

options: { params?: { [name: string]: any; }; } | 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.