Smooth Lottie animation

Hi there,
working on a 3d environment website using a JSON pre-rendered animation and I’m trying to smooth out the scroll behavior.
tried running luxy smooth scroll JS on the page but I think it overrides the positioning of the animation so it doesn’t stick.
so I thought I’d try to embed something like this:

but I haven’t got a clue how to embed that code, would love some advice.
thanks in advance
y.

site: https://yuvals-ultra-awesome-project.webflow.io/scroll-gallery

read only: https://preview.webflow.com/preview/yuvals-ultra-awesome-project?utm_medium=preview_link&utm_source=designer&utm_content=yuvals-ultra-awesome-project&preview=11462953b40ce8d989764fa585791e1e&pageId=5f8c117624084bcd9c4d14a7&mode=preview