lottie-rs
A Lottie file toolkit written in Rust.
Samples
The following samples are gathered from lottiefiles.com community and lottiefiles.github.io. Credits goes to original owners/creators of the files.
Name | Preview |
---|---|
Confetti | |
Techno Penguin | |
Nyan Cat |
Try it out
The default player implementation uses Bevy to render the animation.
cd crates/player
cargo r --release -- --input ../../fixtures/ui/drink.json
There are some lottie files for demonstration purpose under fixtures/ui
Headless runner
Exporting animation headlessly is also supported, aiming to render animations on a server. Currently we support
webp
exporting for test purpose.
cd crates/player
cargo r --release -- --input ../../fixtures/ui/drink.json --headless
Font Loading
This library uses font-toolkit to manage/load/use fonts, which is also MIT-licensed.