About

A file you can open

Last updated 26 November 2026

A Lottie animation is not a video. It is a JSON document that says where a shape goes and when, so a player can draw it at any size and any frame rate. This page opens that document, plays it, changes it, and gives it back.

How the file is read

The JSON is read by the browser's own parser. When it is malformed the page names the line and the column, because the parser's message says what went wrong but not where. When it parses but has no layers, no width, no height, no out point or no frame rate, the page refuses it and names the field that is missing rather than drawing an empty box.

A file that parses is copied once, and that copy is what the page draws. The palette and the layer switches are applied to fresh copies of that same document, so pressing the original colours button always returns to the file as it arrived.

How the palette finds every colour

Six places hold a colour: a shape fill, a shape stroke, a gradient's stop list, a solid layer's hex string, and the fill and stroke colours of a text document. Each of those can be a still value or a list of keyframes with a start and an end value. The walk covers all six and both forms, in the main timeline and inside any precomposition.

The palette groups by red, green and blue, counts each occurrence, and keeps the alpha of each one separately. A replacement writes new numbers into every occurrence of the old colour and leaves the rest of the array alone, so a colour that fades does not become opaque.

The player

The player is lottie-web 5.13.0 under the MIT licence, in its canvas build without the expression engine, served from this domain as one file. It draws shape layers, paths, masks, gradients, images that are carried inside the file, and precompositions. It does not evaluate expressions and it does not have the SVG filter effects, which are not part of a canvas. A file that uses expressions is drawn without them and the page says so above the stage.

The optimiser

Every option removes a part a player does not read: the meta block, markers, name fields, assets no layer refers to, the font list when there is no text layer, and decimals below the place you choose. Each step is measured separately on the JSON as it stands, with your colours already in it, so the number on screen is the number you will download.

The original document is never edited. The lighter file is a copy, and the download starts from that copy.

The exports

A frame is drawn by a second player instance at one, two or three times the file's size, then painted on a canvas with the background you chose. A sprite sheet does the same for evenly spaced frames on a grid, with the columns you ask for. Both exports run from a hidden copy so the stage keeps its own frame and its own clock.

Where it stops

Who made it

Pikkola Lab builds small tools that keep the work in the browser. This is tool No. 70. Write to hello@pikkola.com with a file that reads badly and say which part looks wrong.

Back to the studio

소개

열어 볼 수 있는 파일

최종 수정 2026년 11월 26일

로티 애니메이션은 영상이 아닙니다. 도형이 어디로 언제 가는지 적은 JSON 문서이고, 그래서 플레이어가 어떤 크기와 프레임 레이트로도 그릴 수 있습니다. 이 페이지는 그 문서를 열어 재생하고, 고치고, 돌려드립니다.

파일을 읽는 방식

JSON은 브라우저의 파서가 읽습니다. 깨져 있으면 몇 행 몇 열인지 알려 드립니다. 파서의 메시지는 무엇이 틀렸는지는 말하지만 어디인지는 말하지 않기 때문입니다. 읽히더라도 layers가 없거나, 너비와 높이, 마지막 프레임, 프레임 레이트가 없으면 빈 상자를 그리지 않고 빠진 항목을 짚어 거절합니다.

읽힌 파일은 한 번 복사되고, 페이지는 그 복사를 그립니다. 팔레트와 레이어 숨김은 같은 문서의 새 복사본에 적용되므로, 원래 색 버튼을 누르면 언제나 들어온 그대로 돌아옵니다.

팔레트가 모든 색을 찾는 방법

색이 사는 자리는 여섯입니다. 도형 채우기, 도형 선, 그라디언트의 스톱 목록, 솔리드 레이어의 헥스 문자열, 텍스트 문서의 채우기 색과 선 색입니다. 각각은 고정값일 수도, 시작과 끝 값을 가진 키프레임 목록일 수도 있습니다. 훑기는 여섯 자리와 두 형태를 모두, 본 타임라인과 프리컴프 안쪽까지 봅니다.

팔레트는 빨강, 초록, 파랑으로 묶고, 나온 자리를 세고, 자리마다 투명도를 따로 기억합니다. 교체는 옛 색이 나온 모든 자리에 새 숫자를 쓰고 나머지 배열은 건드리지 않으므로, 흐려지던 색이 불투명해지지 않습니다.

플레이어

플레이어는 MIT 라이선스의 lottie-web 5.13.0이고, 표현식 엔진을 뺀 캔버스 빌드를 이 도메인에서 파일 하나로 내려받습니다. 도형 레이어, 패스, 마스크, 그라디언트, 파일에 담긴 이미지, 프리컴프를 그립니다. 표현식은 계산하지 않고, SVG 필터 효과는 캔버스에 없어 쓰지 않습니다. 표현식을 쓰는 파일은 표현식 없이 그려지고, 무대 위에서 그렇다고 알려 드립니다.

경량화

모든 항목은 플레이어가 읽지 않는 부분을 덜어 냅니다. 메타 블록, 마커, 이름, 어떤 레이어도 가리키지 않는 에셋, 텍스트 레이어가 없을 때의 폰트 목록, 고른 자릿수 아래의 소수입니다. 단계마다 지금 색이 반영된 JSON으로 따로 재므로, 화면의 숫자가 곧 내려받을 숫자입니다.

원본 문서는 고치지 않습니다. 가벼운 파일은 사본이고, 내려받기는 그 사본에서 시작합니다.

내보내기

프레임은 두 번째 플레이어를 파일 크기의 한 배, 두 배, 세 배로 띄워 그리고, 고른 배경을 채운 캔버스에 옮깁니다. 스프라이트 시트는 같은 일을 균등한 간격의 프레임에, 고른 열 수의 격자로 합니다. 둘 다 숨은 사본에서 돌아서 무대는 제 프레임과 제 시계를 지킵니다.

멈추는 곳

만든 곳

피콜라 랩은 작업을 브라우저 안에 두는 작은 도구를 만듭니다. 이것은 70호기입니다. 읽히지 않는 파일이 있으면 hello@pikkola.com으로 보내 주세요. 어느 부분이 이상한지 알려 주시면 됩니다.

스튜디오로 돌아가기

概要

開いて読めるファイル

最終更新 2026年11月26日

Lottie のアニメーションは動画ではありません。図形がどこへいつ行くかを書いた JSON 文書で、だからプレイヤーはどんな大きさでもフレームレートでも描けます。このページはその文書を開き、再生し、変えて、返します。

ファイルの読み方

JSON はブラウザ自身のパーサーが読みます。壊れていれば何行目の何文字目かを伝えます。パーサーの知らせは何が問題かを言いますが、どこかは言わないからです。読めても layers がない、幅や高さ、最後のフレーム、フレームレートがないときは、空の箱を描かずに足りない項目を指して断ります。

読めたファイルは一度写され、ページはその写しを描きます。パレットとレイヤーの表示は同じ文書の新しい写しに当てるので、元の色のボタンを押せばいつでも入ってきたままに戻ります。

パレットがすべての色を見つける方法

色が住む場所は六つです。図形の塗り、図形の線、グラデーションのストップ一覧、ソリッドレイヤーの十六進の文字列、テキスト文書の塗りの色と線の色。どれも固定の値か、始まりと終わりの値を持つキーフレームの一覧です。たどりは六つの場所と二つの形を、本編とプリコンポジションの中まで見ます。

パレットは赤、緑、青でまとめ、出た箇所を数え、箇所ごとに透明度を別に覚えます。置き換えは古い色が出たすべての場所に新しい数を書き、残りの配列には触れないので、薄れていた色が不透明になることはありません。

プレイヤー

プレイヤーは MIT ライセンスの lottie-web 5.13.0 で、式の評価を外したキャンバス版をこのドメインから一つのファイルとして配ります。図形レイヤー、パス、マスク、グラデーション、ファイルに含まれる画像、プリコンポジションを描きます。式は評価せず、SVG フィルター効果はキャンバスにないので使いません。式を使うファイルは式なしで描かれ、ステージの上でそう伝えます。

軽量化

どの項目もプレイヤーが読まない部分を削ります。メタブロック、マーカー、名前、どのレイヤーも指さないアセット、テキストレイヤーがないときのフォント一覧、選んだ桁より下の小数です。段階ごとに今の色が入った JSON で別に測るので、画面の数がそのまま保存する数になります。

原本は書き換えません。軽いファイルは写しで、保存はその写しから始まります。

書き出し

フレームは二つ目のプレイヤーをファイルの一、二、三倍の大きさで動かして描き、選んだ背景を塗ったキャンバスに移します。スプライトシートは同じことを等間隔のフレームに、選んだ列数の格子で行います。どちらも隠した写しで動くので、ステージは自分のフレームと時計を保ちます。

止まる場所

作ったところ

Pikkola Lab は仕事をブラウザの中に置く小さな道具を作ります。これは 70 号機です。読めないファイルがあれば hello@pikkola.com まで。どの部分がおかしいかを教えてください。

スタジオに戻る