gsap-utils
Installation
SKILL.md
gsap.utils — Math & Interpolation Helpers
Mandatory Pre-Flight Context Inspection
Before using gsap.utils, you MUST inspect:
- Pure Number vs Unit strings (Section 306) →
mapRangeandnormalizework ONLY on numbers; usegetUnitandunitizefor string values with units - Reusable Function Form (Section 22) → Omit the value argument (or pass
trueas 4th param forrandom()) to get a reusable function for high-frequency loops - Component Scoping (Section 219) → Use
gsap.utils.selector(containerRef)inside React components to restrict selector targets
Activation Boundaries
- Activate when: Operating in tasks requiring Official GSAP skill for gsap.utils — clamp, mapRange, normalize, interpolate, random, snap, toArray, wrap, pipe. Use when the user asks about gsap.utils, clamp, mapRange, random, snap, toArray, wrap, or helper utilities in GSAP..
- DO NOT activate when: The task falls strictly outside gsap-utils domain or belongs to a different dedicated specialist.