YngveB Posted September 16, 2020 Share Posted September 16, 2020 Site URL: https://lume.energy Hi! I I have tried to add a lottie file via script/JSON to my Squarespace page. However when I try to add code/JS to a block and choose Javascript something wierd happens. I cannot in any way shape or form get SS to show the actual file or run the script. Iv tried support but they dont help and refer me to forum:(. Please if anyone has done this and knows what to do please help. Iv added it in the way they recommend Editor https://d.pr/free/i/OpNNK0 Example on page > https://d.pr/free/i/TQjQRO <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <lottie-player src="https://lumebackground.s3.eu-north-1.amazonaws.com/Animation.json" background="transparent" speed="1" style="width: 300px; height: 300px;" loop controls autoplay></lottie-player> Appreciate all help I can get. Thanks Link to comment
paul2009 Posted September 16, 2020 Share Posted September 16, 2020 2 hours ago, YngveB said: I have tried to add a lottie file via script/JSON to my Squarespace page. However when I...choose Javascript something weird happens. The code you have posted in your question isn't JavaScript, it is HTML. If you choose HTML you shouldn't see errors. If a post helps you, please click a "Like" option below ↘️ About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.