commit | a9d3a1649c2d9d8f1d1d56311f0898b0b5502780 | [log] [tgz] |
---|---|---|
author | Erwan Ameil <wan@idlewan.com> | Wed Jan 31 20:45:52 2024 +0000 |
committer | GitHub <noreply@github.com> | Wed Jan 31 12:45:52 2024 -0800 |
tree | 29b3f7b31fedb54629984ed350e8b35e36c9b21d | |
parent | 8b8c22bfcd352d6d179e2300ea02493b9bdca020 [diff] |
Allow bounce easings along a path to return a position outside of the path (#2457) Don't clamp interpolated distance along path to 'progress' value between 0 and 1. Bounce in / Bounce out easings can transform the progress to negative values or values higher than 1. `getPosTan` unfortunately clamps the input to be between 0 and 1, so we need to handle the t < 0 and t > 1 cases separately. This is for the same issue I helped fix in the flutter library as well here: https://github.com/xvrh/lottie-flutter/pull/330 Expected result (both bounce-in and bounce out) along linear and curved paths: https://github.com/airbnb/lottie-android/assets/632735/6a25e139-fc81-4c3b-b3f3-be118c56db06
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.