What problem does it solve?
This Skill helps you turn raw values into animation-ready inputs by providing GSAP’s reusable math, mapping, snapping, wrapping, and collection helpers in one place.
Core Features & Use Cases
- Value transformation: Clamp, normalize, map ranges, interpolate, and wrap numbers or colors for motion logic.
- Reusable helper functions: Generate function forms of utilities for scroll handlers, callbacks, and repeated tween calculations.
- Collection and layout support: Convert selectors and nodes into arrays, distribute values across targets, and pick random or snapped outputs for staggered animations.
- Use Case: Build a scroll-driven animation that maps progress to rotation, snaps positions to a grid, and distributes delays across a set of elements.
Quick Start
Use the gsap-utils skill to map a progress value to a snapped animation range and return a reusable helper for repeated GSAP calculations.