Pikkola Motion Lab, tool No. 70

The animation keeps its file.

A Lottie animation is JSON: shapes, keyframes and a handful of colours. This page plays one at its own frame rate, rewrites every colour from a single palette, trims the weight that no player needs, and hands back a frame, a sprite sheet or the lighter file.

4
samples built in
0
requests sent
JSON, PNG, sheet
four ways out

Player lottie-web 5.13.0, canvas build, bundled. No CDN, no account, no cookie.

The studio

Open a file, read its colours

Drop a Lottie JSON or start from a sample. The player runs at the file's own frame rate, and every colour in the file appears in one list you can rewrite.

Samples

JSON source

14 KB

Stage

paused 240 × 240 30 fps 90 frames 4 layers
00:00/03:00
Background
The export follows this choice.

Colours and layers

Change a swatch and every layer using that colour follows, keyframes included.

One click

    Weight

    0%

    Anything a player does not need is listed here. The saving is measured on the JSON as it stands, with your colours already in it.

    0 KB 0 KB

    Export

    240 × 240
    This frame as PNG
    Sprite sheet

    Edited JSON, colours and hidden layers included

    Four starts

    Small files that show the whole idea

    Each one uses a different set of colours and a different kind of keyframe. Open one and the palette fills itself.

    01

    Beacon

    Three rings pushed out of one dot, each on its own delay. Two colours, ninety frames, one loop.

    90f
    02

    Dots

    A loader: three dots on position keyframes with a squash, each one six frames behind the last.

    72f
    03

    Check

    A tick drawn on by a trim path, after the plate scales in. The only path in the four.

    50f
    04

    Bars

    Five bars rising out of the baseline on staggered starts. Five colours in one file.

    60f

    How it reads

    Six places hold a colour

    A palette is only useful if it catches all of them. This page walks the file once and finds every one.

    01

    Fills, strokes and gradients

    A shape fill keeps three numbers between 0 and 1, and a stroke keeps the same three. A gradient keeps a list of stops, four numbers each: the position along the gradient and then red, green, blue. The palette reads every stop, not just the first.

    02

    Solids and text

    A solid layer keeps its colour as a hex string such as #4b3a72. A text document keeps a fill colour and a stroke colour as numbers. Both are read, both are rewritten in place, and the alpha of each occurrence is left where it was.

    03

    Keyframes are kept

    A colour can change over time. In that case the file holds a list of keyframes, each with a start and an end colour. A replacement rewrites every one of them, so a colour that shifts from clay to violet still shifts after the change.

    What the optimiser takes out
    Part What it is Why a player can live without it
    meta Generator name, author, keywords and the date the file was written. Nothing is drawn from it. Design tools read it back for a library listing.
    markers Named points on the timeline, used by a video editor or a script. A browser player ignores them unless a page asks for one by name.
    nm The name of every layer, group and shape. Names are for the person editing. A rendered frame is the same without them.
    assets Precompositions and images nothing points at. A layer reaches an asset through a reference. An asset with no reference cannot be drawn.
    fonts The font list, when the file has no text layer. Only a text layer reads a font, so the list is dead weight otherwise.
    decimals Numbers past the third decimal place in positions, scales and control points. A canvas is measured in whole pixels, and the eye cannot see the difference.

    Questions

    Is my animation uploaded?

    No. The content policy sets connect-src to none, the player is bundled with the page, and the file is read by the browser's own parser. Nothing you drop here leaves the tab, and closing it removes the file from memory.

    Which Lottie features are supported?

    Shape layers, paths, masks, gradients, images carried in the file and precompositions draw, because that is what the bundled canvas build handles. Expressions are not evaluated and some of the SVG filter effects do not exist on a canvas; when a file uses an expression the page says so above the stage rather than staying quiet.

    How does the colour replacement work?

    The palette is built by walking the file once, and each entry remembers where it came from. A new colour is written into every occurrence of the old one, keeping the alpha of each one and leaving keyframes in place, so a colour that animates still animates.

    What does the optimiser remove?

    The meta block, markers, names, assets nothing refers to, the font list when there is no text, and decimals past the place you choose. Each step is counted and the page shows the bytes before and after for the boxes you leave ticked. The original file is never changed; the download is a copy.

    Is a sprite sheet better than a video?

    For a short loop used as a preview or a thumbnail, yes: one PNG, no codec, and it opens anywhere. The sheet lays evenly spaced frames on a grid at the size you ask for. Twelve frames at 240 pixels in four columns is a 960 by 720 image.

    Does my file stay between visits?

    No. Only the language, the theme, the speed, the loop and the background are kept in this browser. The animation itself is not saved, so a reload opens the page with the first sample.