Play a Lottie animation (in loop) only while scrolling, possible?

I have a fixed element that contains a Lottie animation. I’d like to have that animation playing only while the user scrolls up/down. Is it possible with Webflow? I couldn’t figure out how. Thanks!