Creates a new WebaniCollectionAnimation instance.
This constructor sets up the animations for all objects within the collection.
The configuration options for the animation.
An array of animations for each individual WebaniTransformable object inside the collection.
Whether the animation plays in reverse.
Duration of the animation in milliseconds.
The interpolation function used for the animation.
Retrieves the after state of the collection.
The after collection.
Sets the after state of the collection.
The new after state.
Retrieves the before state of the collection.
The before collection.
Sets the before state of the collection.
The new before state.
Determines whether the animation is complete based on the current time t.
The time or progress of the animation.
true if the animation is complete, false otherwise.
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 animation by making sure both before and after collections are properly set up.
If they differ in length, the missing objects are duplicated to match.
It also sets up individual animations for each object in the collection.
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 current frame of the animation, interpolating the transforms of the objects in the collection.
The current time of the animation.
The updated collection with interpolated objects.
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 class that animates a collection of
WebaniTransformableobjects or aWebaniPolygon. This class manages the interpolation of all objects within the collection over time.The animation is based on interpolating each object inside the collection from its
beforestate to itsafterstate.