Upload lotties code to Evolve

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.

Hey,

It doest let me an option:


Do you know why?

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!

2 Likes

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 :slight_smile:

3 Likes

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.

  1. Go to your Lottie animation and copy the web embed code. It should look lilke this:
<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>
  1. Add this code into a basic HTML file like so:
<!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>
  1. The HTML filename needs to be index.html

  2. Zip up the index.html file into a zip file.

  3. In your Evolve iFrame, select the ‘Use Embedded Content’ setting

and drag the zip into here

  1. Your Lottie file should then display in the course:

2 Likes

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

1 Like

I realsed after I’d posted that you’d said that you had already got it to work! :laughing:

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 :slight_smile: