Skip to content

@aninest/extensions / Bound

Bound

Adds bounds to an animation to ensure an animation will end within the given bounds.

Index

Type Aliases

Type aliasDescription
BoundsThe 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.
BoundsLayerA layer used to enforce minimum and maximum bounds on an animation.

Functions

FunctionDescription
setupBoundsLayerSets up a bounds layer for an animation. Allows for the animation's bounds to be dynamically changed.