'Integrating lottie-interactivity and Wix (Editor X) for scroll based animation

I'm looking to make the lottie animation I have on my Editor X (Wix but with a few more features) site sync with the scroll position.

I found the documentation for lottie-interactivity, but Editor X uses Wix's Velo code for custom elements. Does anyone know how I can apply this scroll animation to my site? I spoke to Wix customer service and they told me that it is possible using custom code.

I've added the Lottie-player and lottie-interactivity packages via npm, but I'm not really sure where to proceed from there. Any help would be greatly appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source