I am trying to create an interactive lottie file module that can be made sticky, to allow us to create more interactive and immersive web experiences especially when it comes to an explanation section.
But, ironically, I am stuck on the sticky funtionality.
Here is the module as it stands (still in proto form, making an MVP before making it easier to use for non coders):
I have narrowed it down to line 7 being the issue here. I need it in order to make the module sticky but it nullifies the <lottie-player> that get injected on line 27. If I remove it, the lottie file works perfectly, interactivity and all but doesn't stick.
Anyone got any ideas?
Once I have it fixed, I will clean it up, make it user friendly (customisable in the CMS without having to edit code) and will post it for anyone who wants to use it.