API Reference
Modules
| Module | Description |
|---|---|
| AbortSignal | Wraps any extension with an addAbortSignal function to allow to remove the extension from the animation with an AbortController. |
| Bound | Adds bounds to an animation to ensure an animation will end within the given bounds. |
| Minimizes the number of start events triggered. | |
| DynamicDuration | Makes the animation speed dynamic based on the distance between the start and end points. |
| Loop | Extension to loop an animation in a saw-like wave: `/ |
| Momentum | Provides a momentum glide layer. |
| Proxy | Makes 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. |
| Reactor | Allows 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. |
| Restrict | Restricts the animation to predetermined states. Similar to snap but it restricts the animation before it starts animating rather than after it's done animating. |
| Snap | Snaps the animation to predetermined points before ending. |
| Update | Updates 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. |