Optional auto自动播放动画,默认是
Optional by?: boolean为true的时候,to的值为相对值
Optional delay?: number延迟时长
持续时长
Optional easing?: Easingeasing 默认 linear
Optional from?: T开始值(默认{value: 0})
Optional id?: stringid
Optional onA callback function to execute when the animation completes.
The target object that was tweened.
A callback function to execute when the animation completes.
The target object that was tweened.
Optional onA callback function to be executed before each property is updated.
The target object that is being tweened.
The key or property being animated.
The initial value of the animated property.
The final value of the animated property.
The current animation progress as a normalized value (0 to 1).
If false, will not assign a new value to the property.
A callback function to be executed before each property is updated.
The target object that is being tweened.
The key or property being animated.
The initial value of the animated property.
The final value of the animated property.
The current animation progress as a normalized value (0 to 1).
If false, will not assign a new value to the property.
Optional onA callback function to execute when the animation starts.
The target object that is being tweened.
A callback function to execute when the animation starts.
The target object that is being tweened.
Optional onA callback function to be executed after each property has been updated.
The target object that is being tweened.
A callback function to be executed after each property has been updated.
The target object that is being tweened.
Optional repeat重复循环
Optional repeat重复次数
Optional tag?: string分类
Optional to?: T结束值(默认{value: 1)
Optional yoyo是否往返循环
Optional yoyo往返次数
创建动画,对Tween的封装