Skip to content

@aninest/extensions / DynamicDuration

DynamicDuration

Makes the animation speed dynamic based on the distance between the start and end points.

Index

Type Aliases

Type aliasDescription
InterpWithDurationThe most generic interpolation function that can be used with dynamic speed. It only requires a duration parameter as the first argument to the construction function of the interpolation.

Functions

FunctionDescription
dynamicDurationExtensionExtension to make the animation duration dynamic based on the distance between the start and end points.
setRecursiveDynamicDurationSets the duration of an animation to be dynamic based on the distance between the start and end points.