Skip to content

API Reference

Modules

ModuleDescription
AbortSignalWraps any extension with an addAbortSignal function to allow to remove the extension from the animation with an AbortController.
BoundAdds bounds to an animation to ensure an animation will end within the given bounds.
DeduplicatedStartMinimizes the number of start events triggered.
DynamicDurationMakes the animation speed dynamic based on the distance between the start and end points.
LoopExtension to loop an animation in a saw-like wave: `/
ProxyMakes it easier to interact with the animation state by providing a proxy object which mirrors the state of the animation. Also allows you to set the state of the animation by setting the properties of the proxy object.
ReactorAllows creating dependencies between properties of an animation so that when one property changes, another property will be updated as well, based on that one property's value.
RestrictRestricts the animation to predetermined states. Similar to snap but it restricts the animation before it starts animating rather than after it's done animating.
SnapSnaps the animation to predetermined points before ending.
UpdateUpdates the animation every screen refresh, providing a subscribe function which allows listening to: - start - when the animation starts to be updated, - done - when the animation finishes animating everything - update - each update frame It will only update the animation when necessary, i.e. when the animation has been started and there are still things to animate.