gsap-utils

Installation
SKILL.md

gsap.utils — Math & Interpolation Helpers


Mandatory Pre-Flight Context Inspection

Before using gsap.utils, you MUST inspect:

  1. Pure Number vs Unit strings (Section 306) → mapRange and normalize work ONLY on numbers; use getUnit and unitize for string values with units
  2. Reusable Function Form (Section 22) → Omit the value argument (or pass true as 4th param for random()) to get a reusable function for high-frequency loops
  3. 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.

When to Use This Skill

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026