@aninest/extensions / Bound
Bound
Adds bounds to an animation to ensure an animation will end within the given bounds.
Index
Type Aliases
Type alias | Description |
---|---|
Bounds | The bounds of the animation, which means that all values within the bounds are optional, including the the upper and lower objects. The animation will be loosely clamped to these bounds. |
BoundsLayer | A layer used to enforce minimum and maximum bounds on an animation. |
Functions
Function | Description |
---|---|
setupBoundsLayer | Sets up a bounds layer for an animation. Allows for the animation's bounds to be dynamically changed. |