commit | 12748d4d7a41f1a7797819334538fe52261779a5 | [log] [tgz] |
---|---|---|
author | Scott Weber <scott.d.weber@gmail.com> | Sun Sep 19 00:01:32 2021 -0400 |
committer | GitHub <noreply@github.com> | Sat Sep 18 21:01:32 2021 -0700 |
tree | 61175547e90e67643fc0e9e6fbaca0d694a095ce | |
parent | 315ac568ca0cc3f37b64dea882821fd5f892d13b [diff] |
Enforce order of operations to avoid rounding errors (#1897) Previously, the calculation of endLength could suffer from rounding errors. While most of the time, these errors are not a big deal, when the end value is 100, this can result in endLength being larger than totalLength, causing unexpected behavior where the animation reverts to an initial state when it should be showing the final state. By forcing the order of operations, we can get the answer we expect / need. Co-authored-by: Scott Weber <sweber@duosecurity.com>
Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile!
For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. They say a picture is worth 1,000 words so here are 13,000:
Lottie is maintained and improved on nights and weekends. If you use Lottie in your app, please consider sponsoring it to help ensure that we can continue to improve the project we love. Click the sponsor button above to learn more
Gradle is the only supported build configuration, so just add the dependency to your project build.gradle
file:
dependencies { implementation 'com.airbnb.android:lottie:$lottieVersion' }
The latest Lottie version is:
The latest stable Lottie-Compose version is: Click here for more information on Lottie-Compose.
Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.
Because development has started for Lottie Compose, Gradle, and the Android Gradle Plugin will be kept up to date with the latest canaries. This also requires you to use Android Studio Canary builds. Preview builds can be installed side by side with stable versions.