Duram Kim46 downloadsPlay Lottie animations in your notes, embedded like images or opened on their own tab.
A plugin for Obsidian that plays Lottie animations inside your notes.

Follow the steps below to install Lottie.
.json animations to appear in the file explorer. Embedding them in a note works either way.lottie code block.Embed a .json animation the way you would embed an image:
![[spinner.json]]
![[spinner.json|300]] 300 wide; the height follows the animation's proportions
![[spinner.json|300x100]] exactly 300 by 100, proportions ignored
![[spinner.json|center]] left, center or right
![[spinner.json|center|300]] both, with the size last
A size always comes last. If you write several alignments the last one is used, and anything that is not one of the three words is ignored.
To embed an animation without a file, put its JSON in a lottie code block:
```lottie
{ "v": "5.7.0", "fr": 30, "ip": 0, "op": 60, "w": 512, "h": 512, "layers": [ ... ] }
```
Size and alignment do not apply here. The animation is drawn at the size it was authored at.
Clicking a .json in the file explorer opens the animation on a tab, scaled to fill the pane.
Obsidian hides file types it does not know, so .json files will not appear in the explorer until you turn on Settings → Files and links → Detect all file extensions. Embedding them in a note works either way.
Renderer picks what draws the animations:
Changing it redraws everything on screen.
npm install
npm run build
npm run build produces main.js and copies the three release files into test-vault/, a scratch vault (not committed) you can open in Obsidian to try the plugin. npm run dev builds unminified with an inline source map, and npm run check type-checks without building.
Rendering is done by ThorVG through @thorvg/webcanvas 1.1.1. Obsidian only installs main.js, manifest.json and styles.css from a release, so thorvg.wasm cannot ship beside them: esbuild base64-encodes it into the bundle and it is handed to ThorVG as a blob URL at runtime. Without that, @thorvg/webcanvas would fetch the binary from a CDN and the plugin would stop working offline.
MIT — see LICENSE.
The bundled ThorVG binary statically links RapidJSON (MIT), JerryScript (Apache-2.0) and libwebp (BSD-3-Clause). Compilation strips their notices, so they are reproduced in THIRD-PARTY-LICENSES.md and summarised in a header at the top of main.js.
scripts/collect-licenses.mjs regenerates that file from a checkout of thorvg.web at the tag matching the installed @thorvg/webcanvas.