compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Support loading Lottie animations

Open igordmn opened this issue 4 years ago • 9 comments

Skia already supports Lottie animations: https://skia.org/user/modules/skottie

We can implement Composable's to load and show these animations.

igordmn avatar Feb 09 '21 15:02 igordmn

Support for GIF animations: https://github.com/JetBrains/compose-jb/issues/153

igordmn avatar Feb 09 '21 15:02 igordmn

NB, the folks from Airbnb are also designing a Compose API for Lottie animations on Android: https://github.com/airbnb/lottie/blob/master/android-compose.md

SebastianAigner avatar Mar 09 '21 13:03 SebastianAigner

@SebastianAigner Lottie compose doesn't have plan to support CFD as it's using Android Canvas under the hood - https://twitter.com/gpeal8/status/1378443883890180097

sureshg avatar Apr 13 '21 00:04 sureshg

Since it's been 2 years, I wonder if there are any plans for this feature any time soon?

YektaDev avatar Jan 08 '23 13:01 YektaDev

Lottie is important in client!

wwalkingg avatar Jan 25 '23 05:01 wwalkingg

Hello guys, is there any update on this topic?

I'm not pretty sure where to find a kind of roadmap for supporting Lottie in Compose Multiplatform in Mobile

jflavio11 avatar Jul 16 '23 19:07 jflavio11

Currently you can use skia API directly (org.jetbrains.skia.*). Please note that it's part of skiko library with no public API stability guarantees for now.

There is an internal demo with some issue and existing workaround:

Reading time reference inside drawIntoCanvas block solves the issue.

Also almost a year ago we saw successful usage of it in our Slack.

This topic is intended to track adding support in compose library itself

MatkovIvan avatar Jul 17 '23 08:07 MatkovIvan

is there any update about lottie support?

gulabsagevadiya avatar Feb 05 '24 09:02 gulabsagevadiya

is there any update about lottie support?

You might want to try out this project: Kottie.

StarsEnd33A2D17 avatar Feb 07 '24 13:02 StarsEnd33A2D17