Constants for the categories of parameters that can be defined for animations.


  1. enum AnimationMetadataType {
  2. State: 0
  3. Transition: 1
  4. Sequence: 2
  5. Group: 3
  6. Animate: 4
  7. Keyframes: 5
  8. Style: 6
  9. Trigger: 7
  10. Reference: 8
  11. AnimateChild: 9
  12. AnimateRef: 10
  13. Query: 11
  14. Stagger: 12
  15. }


相应的函数为每个类别定义了一组参数,并把它们汇集进相应的 AnimationMetadata 对象中。

A corresponding function defines a set of parameters for each category, and collects them into a corresponding AnimationMetadata object.


State: 0

把一个命名的动画状态和一组 CSS 样式关联起来。 参见 state()

Associates a named animation state with a set of CSS styles. See state()

Transition: 1

用于从一个动画状态过渡到另一个状态的数据。 参见 transition()

Data for a transition from one animation state to another. See transition()

Sequence: 2

包含一组动画步骤。 参见 sequence()

Contains a set of animation steps. See sequence()

Group: 3

包含一组动画步骤。 参见 group()

Contains a set of animation steps. See group()

Animate: 4

包含一个动画步骤。 参见 animate()

Contains an animation step. See animate()

Keyframes: 5

包含一组动画步骤。 参见 keyframes()

Contains a set of animation steps. See keyframes()

Style: 6

包含一组 CSS 属性键值对和命名样式的对照表。 参见 style()

Contains a set of CSS property-value pairs into a named style. See style()

Trigger: 7

把一个动画和一个可附加到元素上的触发器关联起来。 参见 trigger()

Associates an animation with an entry trigger that can be attached to an element. See trigger()

Reference: 8

包含一个可复用的动画。 参见 animation()

Contains a re-usable animation. See animation()

AnimateChild: 9

包含一些数据,用于执行一些由查询返回的自动化。 参见 animateChild()

Contains data to use in executing child animations returned by a query. See animateChild()

AnimateRef: 10

包含一些供可复用动画使用的动画参数。 参见 useAnimation()

Contains animation parameters for a re-usable animation. See useAnimation()

Query: 11

包含子动画的查询数据。 参见 query()

Contains child-animation query data. See query()

Stagger: 12

包含动画序列的交错数据。 参见 stagger()

Contains data for staggering an animation sequence. See stagger()