Setup & Installation
What This Skill Does
gsap.utils is a collection of math and collection helpers built into GSAP. It covers clamping, range mapping, normalization, interpolation, random values, snapping, wrapping, array conversion, and function composition. All utilities work standalone or return reusable functions when the value argument is omitted. Using gsap.utils keeps math and collection operations in sync with GSAP's internal value handling, so there are no unit mismatches or off-by-one errors that come from rolling your own clamp or lerp functions.
When to use it
- Working with gsap utils functionality
- Implementing gsap utils features
- Debugging gsap utils related issues
