# Animation

动画对象。

# 方法

# Animation.step

表示一组动画完成。可以在一组动画中调用任意多个动画方法,一组动画中的所有动画会同时开始,一组动画完成后才会进行下一组动画。

# Animation.export

导出动画队列。export 方法每次调用后会清掉之前的动画操作

# Animation.rotate

从原点顺时针旋转一个角度。

# Animation.rotateX

从 X 轴顺时针旋转一个角度。

# Animation.scale

缩放。

# Animation.skew

对 X、Y 轴坐标进行倾斜。

# Animation.translate

平移变换。

# Animation.translate3d

对 XYZ 坐标进行平移变换。

# Animation.translateX

对 X 轴平移。

# Animation.translateY

对 Y 轴平移。

# Animation.opacity

设置透明度。

# Animation.backgroundColor

设置背景色。

# Animation.height

设置高度。

# Animation.left

设置 left 值。

# Animation.top

设置 top 值。

# Animation.bottom

设置 bottom 值。

# AnimationOptions

# 属性

属�� 类型 默认值 必填 说明
duration number 400 动画持续时间 (ms)
timingFunction 'linear' | 'ease' | 'ease-in' | 'ease-in-out' | 'ease-out' | 'step-start' | 'step-end' 'linear' 动画的效果
delay number 0 动画延迟时间 (ms)
transformOrigin string '50% 50% 0'
Copyright ©2024, All Rights Reserved