2D animation

Lottie animations: online viewer for .lottie files

Thumbnails and a viewer for Lottie animations (dotLottie .lottie packages and the .json Bodymovin exports) that plays, steps through frames and switches between the animations and themes in a package; lists layers, precompositions, images, markers, fonts and references.

Formats
  • .lottie
Lottie animations01 / 02

Lottie animations01 / 02

Viewing Lottie animations in Vormio, screenshot 1 of 2

Capabilities

What it reads and its limits

See Lottie animations without opening After Effects or LottieFiles: a thumbnail in the grid, a preview that plays and steps through frames, and the layers and assets the animation is made of.

  • There are two kinds of entry point. A .lottie file is a dotLottie package: a ZIP archive holding a manifest.json, one or more Lottie animations as JSON, and their images. Packages of both dotLottie 1 and 2 are read; the two versions lay out the archive and the manifest.json differently.
  • The other kind is a standalone Lottie .json, as exported by Bodymovin. It shares its extension with every other JSON file, so Vormio recognizes it from its content: the file must have a canvas width and height (w, h), a frame rate (fr), in and out frames (ip, op) and a list of layers (layers) in which every layer has a numeric type (ty). Any other .json is still shown as text. For a file over 4 MiB, Vormio only checks the start and the end of the file for these fields; a file over 32 MiB is not recognized.
  • The composition lists every animation (canvas size, frame rate, frame count and duration) and the layers of each one. Layers form a tree by parent, and each one shows its type (shape, image, text, precomposition, null and so on), the precomposition or image it uses, and whether it is hidden, matted or masked. It also lists the precompositions with their own layers, the images (format and size; for a package, also whether each is embedded, in the package or not in the package), the markers, the fonts, and the themes and state machines of version 2. The properties are the width and height of the animation that plays first, the number of animations and the longest duration.
  • References: for a .lottie, they are the image, sound and font files that an animation names but the package does not contain; files inside the package are not references. A standalone .json has no package, so every image, sound and font file it names by path is a reference, looked up from the folder the .json is in; images embedded in the JSON are not. An address written as a URL is listed as it is and not checked.
  • Thumbnails and the preview are drawn with LottieFiles' dotLottie runtime (ThorVG) on a transparent background. Many animations start with an empty frame, so a thumbnail draws the middle frame first. When that one is nearly empty too, Vormio picks the fullest frame among the first quarter, the third quarter, the last frame and the first. When all of those are empty, it looks at 24 more frames spread evenly; if they are empty too, there is no thumbnail and the preview says the animation has nothing to draw.
  • PNG, JPEG and WebP images found next to a standalone .json are drawn in its thumbnail and preview.
  • The preview zooms and pans, with Fit and 1:1. Below the picture are a play toggle, previous frame, next frame, a slider you can drag and the frame number. Frame numbers follow the file and count from the first frame of the animation. You can choose between the animations of a package and switch themes when it has any. Clicking an animation, a marker or a theme in the composition takes the preview there.

Limits

To recognize a .json, Vormio first looks for "op" or "ddd" in the first and last 64 KiB of the file, and reads the structure only when it finds one. An animation over 128 KiB that has these fields only in the middle of the file is not recognized and is still shown as text.

The runtime supports only some expressions, so a property that uses one may be drawn differently from After Effects, and a malformed expression can keep the whole animation from being drawn. 3D layers and cameras, layer effects, layer styles, merge paths and video layers may be missing or drawn differently. Text layers need embedded glyphs or a font in the package to be drawn. Each of these is written in the notes of the file it applies to.

In a .lottie, images that are not in the package are not drawn; a placeholder icon takes their place. An image of a standalone .json is also a placeholder icon when it was not found, is given as a URL, is not a PNG, JPEG or WebP, or comes after the 256th image. The notes of the file say which images and why. Sound is not played. State machines are listed by name only and do not run, so the preview always loops the animation.

Limits: an archive directory of up to 4,096 entries and 4 MiB; 32 MiB for each animation JSON, including a standalone .json; layers and assets are read for the first 16 animations, and the rest are listed by name; the composition lists up to 2,000 layers. No thumbnail or preview is made when the package is over 256 MiB unpacked, when a standalone .json and the images next to it are over 256 MiB in total, when the images of an animation exceed 64 megapixels in total, or when an animation has more than 10,000 layers. A thumbnail gets at most 20 seconds, and the preview waits at most 60 seconds to load.

The bundled samples come from the official LottieFiles/dotlottie-web and airbnb/lottie-web repositories (MIT): exploding-pigeon.lottie (dotLottie v1 with precompositions and markers), multi-themes.lottie (dotLottie v2 with six switchable themes), shape-quiz.lottie (dotLottie v2 with state machine and markers), and two standalone Bodymovin exports, gatin.json and lottie-lego.json. Sources and licenses are listed in README.txt in the samples folder.

Where to inspect

Choose how to inspect your files

Start in your browser

The web app reads one local folder at a time. UID / GUID references are marked “Not checked”.

Working across folders?

Desktop links multiple folders, filters by properties, shows what references a file and watches for changes.

Related guides

Related guides

Related formats

Related formats