airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
34.97k stars 5.4k forks source link

Animation doesn't play using Lottie-Compose #2045

Closed chummy-ch closed 2 years ago

chummy-ch commented 2 years ago

Describe the bug With Lottie-Compose, the animation doesn't play. Some other animations are playing and anothers playing wrong.

What version of Lottie did you test this on? Lottie-Compose 5.0.3 Jetpack Compose 1.0.5.

Steps To Reproduce Steps to reproduce the behavior:

Use the attached planes.json file in the zip (this is from link) planes.json.zip

Use LottieComposition to display the animation

val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(rawRes))
val progress by animateLottieCompositionAsState(
           composition = composition,
          iterations = LottieConstants.IterateForever
    )
LottieAnimation(
        composition = composition,
        modifier = modifier,
        progress = progress,
   )

https://user-images.githubusercontent.com/57348590/160158485-877890de-e37e-4ec4-86da-7e666e702caa.mp4

gpeal commented 2 years ago

Lottie Android doesn't support expressions or the trace path effect http://airbnb.io/lottie/#/supported-features