slint-ui / slint

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

Support for rendering lottie animations #5549

Open tjallingt opened 4 months ago

tjallingt commented 4 months 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 4 months 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)