slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.27k stars 537 forks source link

Support for rendering lottie animations #5549

Open tjallingt opened 2 weeks ago

tjallingt commented 2 weeks ago

Lottie animations can be used to add a lot of life to a gui and can be rendered (relatively) efficiently. There are several rust libraries out there to read and render lottie animation files: https://github.com/LottieFiles/dotlottie-rs, https://github.com/zimond/lottie-rs, https://github.com/linebender/velato

It would be great if slint had built-in support to render and control (play/pause/etc) lottie animations.

ogoffart commented 1 week ago

Thanks for filling an issue. This is probably a feature we want to add. Related: support for animated images (.gif) https://github.com/slint-ui/slint/issues/2081 (and it should probably be done similarily)