填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写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.