gsap-utilities
Installation
SKILL.md
GSAP Utilities
GSAP provides powerful utility functions for data manipulation, math operations, and common animation tasks. These utilities streamline complex logic and improve code readability.
Core Utilities
clamp
import { gsap } from 'gsap'
// Clamp value between min and max
const clamped = gsap.utils.clamp(0, 100, 150) // Returns 100
const clamped2 = gsap.utils.clamp(0, 100, 50) // Returns 50