Hey,
We have started to use lotties to create gifts.
Is there any component in Evolve that supports the following HTML code?
Thank you,
Shoval
Hey,
We have started to use lotties to create gifts.
Is there any component in Evolve that supports the following HTML code?
Thank you,
Shoval
Yes - the iFrame component can be used to embed the files from Lottie.
Hi @Shoval_Shirom , have you tried change ‘script’ to ‘iframe’ in the source code field (at the start and the end)?
Cheers-Sam
I have asked my team for a different code and then it worked thank you!
Do you think that we can implement this to items in the accordion component?
Or it gets only files?
Thank you so much for your help!
Hi @Shoval_Shirom , the iframe component is the only component that allows you embed external content like this, so it wouldn’t be possible in an accordion.
Cheers-Sam
I understand, Thank you so much for your help!
Shoval.
I’d like to see full Lottie integration into more components too, please
Hey Barry,
How do you upload gifs to Evolve today?
Hey Shoval, it’s been a while since I’ve done so, but I’ve just checked and we used the Gif component.
Hey, good to know
Thanks for sharing!
Shoval.
HI Shoval, I’ve checked again and you can Gifs to components, such as an Accordian, but you have less control over it.
Ha sorry I am confused …
I mean how do you upload lotties today to Evolve?
Hi Shoval, you’ll need to use an iFrame component. I’ve just tested it again and this is how you can do it.
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<lottie-player src="https://lottie.host/7546a4c1-071a-4925-977a-d8c5f104f407/Qc1NfeCZWX.json" background="#FFFFFF" speed="1" style="width: 300px; height: 300px" loop controls autoplay direction="1" mode="normal"></lottie-player>
<!DOCTYPE html>
<html>
<body>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<lottie-player src="https://lottie.host/7546a4c1-071a-4925-977a-d8c5f104f407/Qc1NfeCZWX.json" background="#FFFFFF" speed="1" style="width: 300px; height: 300px" loop controls autoplay direction="1" mode="normal"></lottie-player>
</body>
</html>
The HTML filename needs to be index.html
Zip up the index.html file into a zip file.
In your Evolve iFrame, select the ‘Use Embedded Content’ setting
and drag the zip into here
Yeah it worked for me as an Iframe as Sam said.
Just like you said, we would like to see full Lottie integration into more components too.
Thank you,
Shoval
I realsed after I’d posted that you’d said that you had already got it to work!
But someone else my find the process useful.
I do often wonder if how I do things is the only way of doing them, or if there are better ways. So feel free to let me know otherwise.
Cheers