Capítulo 26 de 411
gsap.quickTo() creates a reusable, optimized tween function bound to one numeric property, for cases where you call gsap.to() on the same target/property repeatedly (e.g. pointermove) and want better performance without giving up easing.
random() parsing, and most plugin-driven properties (only direct/CSS-related properties work — no attr, no morphSVG, etc.).duration, ease, etc.), set once at creation.let xTo = gsap.quickTo("#id", "x", { duration: 0.4, ease: "power3" });
document.addEventListener("pointermove", (e) => {
xTo(e.clientX); // smoothly eases toward the new x on every pointer move
});
gsap.to() call every event.quickSetter() (instant), quickTo() still animates with easing — it's the performant version of repeatedly calling gsap.to(), not gsap.set().