aditya-deokar/gsap-motion-engineer/gsap-utils
Claude Code and agent skill by aditya-deokar/gsap-motion-engineer
- community
Checking that the SKILL.md file is still in the repository.
Master skill for gsap.utils — clamp, mapRange, normalize, interpolate, random, snap, toArray, wrap, distribute, and pipe. Use when performing mathematical mappings, converting scroll/cursor coordinates, building carousel wrapping logic, normalizing inputs, or composing utility functions.
Install
npx vskill@latest install aditya-deokar/gsap-motion-engineer/gsap-utilsSKILL.md
The same SKILL.md was published earlier as aditya-deokar/gsap-motion-engineer/gsap-utils.
gsap.utils Master Utility Skill
When to Use This Skill
Apply this skill whenever writing math, coordinate mapping, or data transformations for animations:
- Mapping mouse or scroll positions to transforms (
mapRange,normalize,interpolate). - Confining movement within min/max boundaries (
clamp). - Creating infinite continuous carousels (
wrap,wrapYoyo). - Converting selectors or NodeLists into guaranteed clean arrays (
toArray). - Generating deterministic or snapped values (
random,snap). - Chaining mathematical transformations into clean pipelines (
pipe).
🛠️ Essential Utility Methods
1. gsap.utils.mapRange(inMin, inMax, outMin, outMax, value)
Maps a value from an input range to a corresponding output range. Essential for interactive cursor/scroll math:
2. gsap.utils.clamp(min, max, value)
Clamps a number between a lower and upper bound:
3. gsap.utils.normalize(min, max, value)
Normalizes any number within a range to a 0 to 1 decimal (ideal for progress indicators):
4. gsap.utils.interpolate(start, end, progress)
Linearly interpolates between two numbers, colors, or objects:
5. gsap.utils.toArray(targets)
Safely converts strings, NodeLists, HTMLCollections, or arrays into a clean Array of DOM elements:
6. gsap.utils.wrap(min, max, value)
Wraps a value within a range so that exceeding max wraps around to min (critical for infinite carousels):
7. gsap.utils.snap(snapIncrementOrArray, value)
Snaps a value to the nearest increment or closest array value:
8. gsap.utils.pipe(fn1, fn2, fn3...)
Composes multiple transformation functions into a single reusable pipeline:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gsap-utils/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aditya-deokar/gsap-motion-engineer/gsap-utils)