commit | ddd1ac0a7f1929d59c4b5bd2a84aa16ca947ef75 | [log] [tgz] |
---|---|---|
author | Ralph <git@ralph.ms> | Wed Aug 28 05:02:02 2019 +0900 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Tue Aug 27 16:02:02 2019 -0400 |
tree | 1832ee5157ece8afccafffc898c168a2686bf03c | |
parent | e2b0041a285c08ecb34d4055e66650664aef92d2 [diff] |
Fix progress calculation logic when the layer is time-remapped layer (#1368) There are 2 problem on progress calculating with the layer that is applied time-remapping. If the layer with time-remapping is placed on the way of animation, the progress calculation becomes wrong. The value that is got from timeRemapping is already adjusted with layerModel.getStartProgress(). If the root layer is started from on the way (LottieComposition#startFrame isn't 0), the child layer with time-remapping is drawn wrongly. The value that is got from timeRemapping isn't adjusted with LottieComposition#startFrame
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:
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:
Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.