Inlottie
Lottie animation parser/renderer/viewer in Rust
Install / Use
/learn @mhfan/InlottieREADME
lib/tool in Rust for Lottie (Bodymovin) Animation
The original Lottie json shema file was slightly modified so that the great typify tool could run and convert it into Rust codebase. After extensive manual simplification and optimization efforts, finally, the parser seems to be very compatible to accept most of the realword sample json files of Lottie Animation without too much compromise.
A simple and straightforward viewer/renderer for Lottie animation was implemented intuitively based on femtovg, yet with many features (Text/Image/Audio/LayerEffect/etc.) to be developed/extended.
Besides, a player/renderer adapted to rive-app for Rive animation based on femtovg is also included, though is currently not capable to support clip path and blend mode.
TODO: refer to intvg, development/implement a renderer based on gpac/evg, blend2d, HTML5/Web Canvas API to support most of Lottie and Rive animation features; and a viewer based on bevy engine or Dioxus? Then, enhance capability to parse/handle dotLottie.
pathfinder performs exact coverage high quality anti-aliasing of GPU rendering, seems to be a better choice than femtovg.
Usages
cargo r -- <path-to-lottie/svg>
cargo r -F rive -- <path-to-rive/lottie/svg> # see Note below
cargo r -F vello --bin vello -- <path-to-svg>
cargo r -F b2d -- <path-to-svg>
(with Drag & Drop support)
Note: To build for rive support, first remove comment of line "rive-rs = " in Cargo.toml. Since it isn't published on crates.io yet.
References
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
