AnimationStateMetadata
通过将状态名称和一组 CSS 样式相关联来封装一个动画状态。 由 state()
函数实例化并返回。
Encapsulates an animation state by associating a state name with a set of CSS styles. Instantiated and returned by the state()
function.
interface AnimationStateMetadata extends AnimationMetadata {
name: string
styles: AnimationStyleMetadata
options?: {...}
// 继承自 animations/AnimationMetadata
type: AnimationMetadataType
}
属性
属性 | 说明 |
---|---|
name: string | 状态名,在组件内要唯一。 The state name, unique within the component. |
styles: AnimationStyleMetadata | 与该状态相关联的一些 CSS 样式。 The CSS styles associated with this state. |
options?: { params: { [name: string]: any; }; } | 一个配置对象,包含一些由开发人员定义的参数,以提供默认样式,并可以在调用时重写。 An options object containing developer-defined parameters that provide styling defaults and can be overridden on invocation. |