Capítulo 175 de 411
A helper that connects a Lottie (After Effects export) animation's playhead to scroll position, so the animation scrubs forward/backward as the user scrolls, similar to the canvas image-sequence helper but for Lottie's own renderer.
lottie.loadAnimation() with autoplay: false, then tweens a {frame: 0} object up to totalFrames - 1 with a ScrollTrigger attached (scrub, pin: true by default).speed shorthand ("slow" | "medium" | "fast") that maps to preset scroll distances, or any custom ScrollTrigger property can override defaults via the same vars object.gsap.context() internally for cleanup-friendliness in component frameworks.LottieScrollTrigger({
target: "#animation-container",
path: "data.json",
speed: "medium",
});
lottie-web library to be loaded, in addition to GSAP + ScrollTrigger.vars property is passed through to override the generated ScrollTrigger config.