Back to skills

gsap-utils

development

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 fun

Setup & Installation

npx skills add https://github.com/greensock/gsap-utils --skill gsap-utils
or paste the link and ask your coding assistant to install it
https://github.com/greensock/gsap-utils
View on GitHub

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