Home/Help/Import and export/Export a Lottie file

IMPORT AND EXPORT

Export a Lottie file

Export › Lottie writes a .lottie (a small zip: the animation, its pictures and fonts, and its flows and themes) or a .json (the plain animation, for every Lottie player). The preview plays the very file that will be downloaded, in the official dotLottie player; what a Lottie file can't hold is listed in an amber note, never dropped silently.

Do it in the editor: guided tour5 steps · about 3 minutes · opens a practice scene

Step by step

  1. Open Export › Lottie

    Click Export in the top bar, then Lottie across the top of the window.

  2. Pick .lottie

    Under Format, pick .lottie. It holds the flows as state machines and the themes and tokens as themes and slots; a .json holds the animation only.

  3. Start it with the flow

    Pick With the flow in Starts: the file's state machine starts it, and the test controls under the preview drive it in the dotLottie player. On load and Programmatic play the plain animation.

  4. Get the code for your site

    Click Embed in your site: the code loads the dotLottie player and starts the file, its state machine and its theme.

  5. Download it

    Click Download .lottie.

Good to know. Text has three ways: Fonts from the page (the smallest file; the embed code hands the player the fonts), Outlines (shapes, the same in every player) and Embedded fonts (the fonts inside the file). A Lottie file counts in frames, at the Document's frame rate.

Keys

Ctrl EExport