Optional
easingThe easing function to control the animation's progression.
Optional
onA callback function to execute when the animation completes.
A callback function to execute when the animation completes.
The target object that was tweened.
是否整个动画都结束了
是否强制终止了
The target object that was tweened.
是否整个动画都结束了
是否强制终止了
Optional
onA callback function to be executed before each property is updated.
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.
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.
A callback function to execute when the animation starts.
The target object that is being tweened.
The target object that is being tweened.
Optional
onA callback function to be executed after each property has been updated.
A callback function to be executed after each property has been updated.
The target object that is being tweened.
The target object that is being tweened.
Interface for configuring motion animations in a Tween. You can specify easing, callback functions, and progress tracking functions.