# gsap-utils

> Claude/Codex skill by [@greensock](https://omgskills.com/library/greensock/index.md) · 16k stars · Updated 2026-07-29

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.

## Install

```sh
git clone https://github.com/greensock/gsap-skills /tmp/gsap-skills && ln -s /tmp/gsap-skills/skills/gsap-utils ~/.claude/skills/gsap-utils
```

## From README

gsap.utils When to Use This Skill Apply when writing or reviewing code that uses gsap.utils for math, array/collection handling, unit parsing, or value mapping in animations (e.g. mapping scroll to a value, randomizing, snapping to a grid, or normalizing inputs). Related skills: Use with gsap-core, gsap-timeline, and gsap-scrolltrigger when building animations; CustomEase and other easing utilities are in gsap-plugins. Overview gsap.utils provides pure helpers; no need to register. Use in tween vars (e.g. function-based values), in ScrollTrigger or Observer callbacks, or in any JS that drives GSAP. All are on gsap.utils (e.g. gsap.utils.clamp()). Omitting the value: function form. Many utils accept the value to transform as the last argument. If you omit that argument, the util returns a function that accepts the value later. Use the function form when you need to clamp, map, normalize, or snap many values with the same config (e.g. in a mousemove handler or tween callback).

## Links

- HTML page: https://omgskills.com/library/greensock/gsap-skills/skills/gsap-utils/
- GitHub: https://github.com/greensock/gsap-skills
- Author: [@greensock](https://omgskills.com/library/greensock/index.md)

## More from this repo

- [gsap-core](https://omgskills.com/library/greensock/gsap-skills/skills/gsap-core/index.md) — Official GSAP skill for the core API — gsap.to(), from(), fromTo(), easing, duration, stagger, defaults,...
   - [@greensock](https://omgskills.com/library/greensock/index.md) · 18k stars
- [gsap-frameworks](https://omgskills.com/library/greensock/gsap-skills/skills/gsap-frameworks/index.md) — Official GSAP skill for Vue, Svelte, and other non-React frameworks — lifecycle, scoping selectors, cleanup on unmount.
   - [@greensock](https://omgskills.com/library/greensock/index.md) · 16k stars
- [gsap-performance](https://omgskills.com/library/greensock/gsap-skills/skills/gsap-performance/index.md) — Official GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching.
   - [@greensock](https://omgskills.com/library/greensock/index.md) · 16k stars
