We at Touchlab recently researched Lottie animation libraries in Compose Multiplatform and wrote a short blog post about it. If you are also interested in this topic, it may be helpful to you 🙂
https://touchlab.co/compose-multiplatform-lottie
✅ 2
🫶 1
K 13
faogustavo
07/31/2024, 6:01 PM
This is probably not the best place, but kudos to @Ismail and @Alexander Zhirkevich for implementing these great libraries pepe clap
🎉 8
a
Alexander Zhirkevich
07/31/2024, 8:31 PM
You can play with Compottie in web LottieFiles search app.
All animations are rendered using pure Kotlin renderer.
Safari runs this app using JS so it is lagging as 💩. Browsers with wasm support handle it way better
😮 1
d
darkmoon_uk
08/01/2024, 8:36 AM
Browsers with WASM support handle it way better
They do; see the Compose Test Card tab here.
Interesting that there are these extra libraries; I found the Skottie feature already hiding within Skia - do they make this feature more ergonomic to use or are they new standalone implementations?
a
Alexander Zhirkevich
08/01/2024, 8:58 AM
> They do; see the Compose Test Card tab here.
Yep. I just meant that the app can automatically fallback to JS when it can't detect wasm GC
> I found the Skottie feature already hiding within Skia
Indeed. But it doesn't support images and fonts (they aren't properly exposed in skiko) and in general some animations run differently there
> do they make this feature more ergonomic to use or are they new standalone implementations
Compottie is a standalone multiplatform implementation that produces simple Compose Painter consistent on all platforms. Kottie is a wrapper of Skottie, lottie-android and lottie-ios with native views and all its pros and cons