Hi all, I’m hoping for help with 2 issues.
First is that i’m getting this error on a page with multiple Lottie jsons;
Uncaught DOMException: CustomElementRegistry.define: ‘lottie-player’ has already been defined as a custom element
I’m loading the Lottie player via a html module in Beaver Builder. Initially I used the Lottie module, but i could’t control the animation on scroll in Motion.page unless I used the html module. I’ve only added
once, as I’m aware adding multiple times can cause the page to break.
Any ideas what I need to change? Baring in mind i’m a designer not a coder!
Second is that my animations are large, due to the fact that the client supplied them without knowing Lottie limitations. I could only get it to work by optimising a png sequence.
The load time is too long, due to 1.5mb optimised json files. Does anyone know if it is possible to set a ‘poster’ image that displays the first frame of the animation upon load?
Any assistance would be hugely appreciated!