commit | 15abed0f015ef1479d33e06c194e0aa66d949728 | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gabriel.peal@airbnb.com> | Tue Dec 05 14:00:53 2017 -0800 |
committer | Gabriel Peal <gabriel.peal@airbnb.com> | Tue Dec 05 14:00:53 2017 -0800 |
tree | 570bf07250c7bba0c5eed364ea32c77c7b377a3b | |
parent | 84fde6bf296f06c3c296fcad5618b60bc6dec3df [diff] |
Fix precomps that are time stretched and longer than their parent It is possible to create an composition and then precomp it into a shorter composition but time stretch it down to fit the new shorter duration. In this case, at the end of the animation, the progress for the precomped layer will be > 1 because its frames extend past the end of the original composition. This fixes a keyframe from clipping at 1 to clipping at its actual end duration which may be > 1.
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 { compile 'com.airbnb.android:lottie:2.3.0' }
OR
dependencies { compile 'com.airbnb.android:lottie:2.3.1-SNAPSHOT' }