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
1 file changed
tree: 1832ee5157ece8afccafffc898c168a2686bf03c
  1. .github/
  2. .gitignore
  3. .idea/
  4. .travis.yml
  5. After Effects Samples/
  6. CHANGELOG.md
  7. CODE_OF_CONDUCT.md
  8. DESIGNER_NOTES.md
  9. LICENSE
  10. LottieSample/
  11. README.md
  12. RELEASE.md
  13. build.gradle
  14. credentials.tar.gz
  15. decrypt.sh
  16. deploy_snapshot.sh
  17. gcloud_run.sh
  18. gcloud_setup.sh
  19. gifs/
  20. gradle.properties
  21. gradle/
  22. gradlew
  23. gradlew.bat
  24. issue-repro/
  25. lottie/
  26. post_pr_comment.js
  27. secrets.tar.enc
  28. settings.gradle
  29. sign.sh
  30. version.sh
README.md

Lottie for Android, iOS, React Native, Web, and Windows

Build Status

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:

View documentation, FAQ, help, examples, and more at airbnb.io/lottie

Example1

Example2

Example3

Community

Example4

Download

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: lottieVersion

Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.