Export and put it on your site
One project, many files. This guide covers the export window, which format to pick, and the code to put the result on a website.
Export
Click Export in the top bar, or press Cmd or CtrlE.
Pick a format. They are grouped as For websites and apps, Video, and Images.
Check the options. Depending on the format: size, frame rate, quality, how many times it plays, the background (a colour or see-through) and the file name. Mosso shows roughly how big the file will be.
Click Export. The file is made on your computer and saved with your downloads. Nothing is uploaded.
Which format to pick
| Format | Best for |
|---|---|
| Lottie JSON | Websites and apps. Tiny, and sharp at any size. |
| dotLottie | Lottie, zipped. The smallest file for the web. |
| Animated SVG | Websites. Plays in a plain image tag, no player needed. |
| MP4 | Social posts, slides and video editors. |
| WebM | Video on websites. Small and sharp. |
| Transparent WebM | Video that sits on top of a page or other footage. |
| GIF | Email, chat and docs. Plays almost anywhere. |
| PNG frames | Other editors. One image per frame, in a zip. |
Put it on a website
After a Lottie, dotLottie or animated SVG export, the window shows Use it on your site with tabs for HTML, React, Webflow and Framer. Copy the code for your setup. For a plain web page it looks like this: upload the file next to the page, then paste:
<div id="spinner" role="img" aria-label="Spinner"
style="width: 100%; max-width: 400px; aspect-ratio: 400 / 400"></div>
<script src="https://cdn.jsdelivr.net/npm/lottie-web@5.12.2/build/player/lottie_light.min.js"></script>
<script>
lottie.loadAnimation({
container: document.getElementById('spinner'),
renderer: 'svg',
loop: true,
autoplay: !matchMedia('(prefers-reduced-motion: reduce)').matches,
path: 'spinner.json',
});
</script>For React, install the player with npm install lottie-react, put the file next to your component, and use:
import Lottie from 'lottie-react';
import animation from './spinner.json';
export function Spinner() {
return (
<Lottie
animationData={animation}
loop
role="img"
aria-label="Spinner"
style={{ width: '100%', maxWidth: 400, aspectRatio: '400 / 400' }}
/>
);
}In Webflow, open the Add panel, find Lottie animation under Media, drag it onto the page and upload your file, then turn on Loop. In Framer, open Insert, search for Lottie, drop it on the page, upload your file in its properties and turn on Loop. Both take Lottie JSON files.
The HTML code only autoplays when the visitor has not asked their system to reduce motion. Keep that line in.
Put it in an app
Lottie plays natively on phones. Add the Lottie JSON file to your project and play it with the official player for your platform: Lottie for iOS, Lottie for Android, lottie-react-native for React Native or the lottie package for Flutter. The dotLottie players for iOS and Android take the smaller .lottie file.
Use it in a video editor
For After Effects, Premiere, DaVinci Resolve and similar, export PNG frames: a zip with one see-through picture per frame, which every editor can import as an image sequence. Transparent WebM keeps the background see-through in one file; Chrome, Edge and Firefox show it that way, Safari does not, so use PNG frames or GIF there.
Something missing or wrong here? Write to hello@mosso.video.