#animation #lottie #platform-independent #bindings #surface #render-frame

rlottie

A platform independent standalone library that plays Lottie Animation

12 releases

Uses new Rust 2024

new 0.5.4 Mar 7, 2026
0.5.2 Nov 4, 2022
0.5.0 Jul 24, 2022
0.3.0 Mar 17, 2022
0.2.0 Nov 11, 2021

#391 in Graphics APIs

Download history 35/week @ 2025-11-13 34/week @ 2025-11-20 29/week @ 2025-11-27 43/week @ 2025-12-04 47/week @ 2025-12-11 24/week @ 2025-12-18 24/week @ 2025-12-25 58/week @ 2026-01-01 7/week @ 2026-01-08 30/week @ 2026-01-15 21/week @ 2026-01-22 46/week @ 2026-01-29 22/week @ 2026-02-05 19/week @ 2026-02-12 48/week @ 2026-02-19 10/week @ 2026-02-26

108 downloads per month
Used in 10 crates (6 directly)

MIT license

25KB
473 lines

rlottie License: MIT rlottie on crates.io rlottie on docs.rs Source Code Repository Rust Version: 1.85.0

Safe Rust bindings to rlottie.

Example

use rlottie::{Animation, Surface};

let mut animation = Animation::from_file(path_to_lottie_json)?;
let size = animation.size();
let mut surface = Surface::new(size);
for frame in 0 .. animation.totalframe() {
	animation.render(frame, &mut surface);
	for (x, y, color) in surface.pixels() {
		println!("frame {frame} at ({x}, {y}): {color:?}");
	}
}

Dependencies

~0.3–2.6MB
~52K SLoC