airbnb / lottie-android

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

Lottie Animation background #778

Closed Anmolk22 closed 6 years ago

Anmolk22 commented 6 years ago

I am trying to make the lottie animation background transparent but couldn't find any configuration to do the same. I've tried the online bodymovin but the color background is not changing. Please suggest https://editor.lottiefiles.com/?src=https://www.lottiefiles.com/download_public/305

gpeal commented 6 years ago

@Anmolk22 the background is transparent. You can tell by dragging the json over lottiefiles, scanning the qr code with the Lottie app on the play store and changing the background color.

The background is probably on your view itself.

EmilAlipiev commented 5 years ago

@gpeal i followed your instructions but on the app there is no background transparent option. how do you mean that?

gpeal commented 5 years ago

@EmilAlipiev Lottie has no default background. It is transparent by default.

chitgoks commented 3 years ago

there does not seem to be any way to make it transparent.

in the editing layer page for lottie files, i set the background to transparent, nothing happens. i set the background of com.airbnb.lottie.LottieAnimationView to null or transparent, nothing happens. it's still white.

anyone solved this?

bobweishar commented 1 year ago

Did anyone ever figure this out? I'm exporting an animation from After Effects using BodyMovin and trying to remove the background for the Lottie File.

gpeal commented 1 year ago

It must be there in After Effects. Lottie has no notion of a background, it would only show up that way if it's part of your animation.

mchiasson-youi commented 1 year ago

I am also seeing an unwanted white background with lottie-android with Compose while the same exact asset remains transparent on lottie-web.

EDIT: we figured out the source of the issue: we used full comp-sized track matte and that's what caused a white background on lottie-android.