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

AnimationTransitionMetadata

封裝一個轉場動畫。由 transition() 函式實例化並返回。

Encapsulates an animation transition. Instantiated and returned by the transition() function.

      
      interface AnimationTransitionMetadata extends AnimationMetadata {
  expr: string | ((fromState: string, toState: string, element?: any, params?: {...}))
  animation: AnimationMetadata | AnimationMetadata[]
  options: AnimationOptions | null

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

屬性

屬性說明
expr: string | ((fromState: string, toState: string, element?: any, params?: { [key: string]: any; }) => boolean)

用於描述狀態變更的表示式。

An expression that describes a state change.

animation: AnimationMetadata | AnimationMetadata[]

該轉場動畫所包含的一個或多個動畫物件。

One or more animation objects to which this transition applies.

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.