Creates an instance of WebaniInterpolatedAnimation.
Configuration options for the animation.
Whether the animation plays in reverse.
Duration of the animation in milliseconds.
The interpolation function used for the animation.
Getter for the unresolved after state of the object.
Getter for the unresolved before state of the object.
Determines if the animation has completed.
The animation is considered done when the time t exceeds the duration.
The time of the animation.
true if the animation has completed, otherwise false.
Calculates and returns the transformed object at the current frame of the animation.
The time or progress of the animation, typically between 0 and 1.
The current state of the animated object.
Interpolates the progress of the animation based on the time t.
The time or progress of the animation, typically between 0 and 1.
A normalized value between 0 and 1 representing the progress of the animation.
Resolves the before and after transformable states by creating shallow copies of them.
Initializes the current object with a shallow copy of the before state.
Resolves the transforms of the before and after objects to ensure they have the same number of extra transforms.
This function ensures that the animation has a consistent structure when resolving the transforms.
Sets the transforms for the current object based on the frame time t.
This method is responsible for applying the interpolated transforms to the object.
The time of the animation.
The WebaniTransformable object with the applied transforms for the current frame.
StaticcubicCubic interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value with cubic easing.
StaticeaseEase-in-out interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value with ease-in-out easing.
StaticlerpLinear interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value.
A specific implementation of
WebaniInterpolatedAnimationfor animating aWebaniTransformableobject. This class handles the interpolation of transform properties over time for transformable objects.