Wix runs custom HTML in an iFrame embed. Paste a self-contained snippet with the lottie-player script inside — no Velo code needed.
Download the Lottie JSON from Unicorn Icons and upload it to any public host. You need a public HTTPS URL — jsDelivr, Cloudflare R2, S3, or your own server all work.
In the Wix editor: click + Add Elements → Embed & Social → Embed HTML. This adds an HTML iFrame element to your page.
Click 'Enter Code' on the embed element. Paste the full HTML below — both the script tag and the lottie-player element.
<html>
<body style="margin:0;padding:0;background:transparent;">
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<lottie-player
src="https://your-domain.com/your-animation.json"
background="transparent"
speed="1"
style="width:150px;height:150px;"
loop
autoplay>
</lottie-player>
</body>
</html>In the Wix editor, drag the embed element to match the icon size you set in the HTML (e.g., 150×150px). Wix uses iFrame, so the embed box needs to match the content size.
iFrame sizing note
Wix embeds run in an iFrame, so the embed element size in the Wix editor needs to match the HTML content size. If the icon looks cut off, increase the embed element's height and width in the editor.
Why does Wix use an iFrame?
Wix sandboxes custom HTML for security. The embed runs in an isolated iFrame — the lottie-player script loads inside it, which works fine for displaying animations.
Where do I host the JSON?
Any public HTTPS URL works. Wix doesn't host JSON files natively, so use jsDelivr, Cloudflare R2, S3, or your own server.
Works in Wix Studio?
Yes. Add → Embed & Social → HTML iFrame. Same code, same result.
Related guides
Get your animated icons
Browse icons ready for Wix — free to download.