commit | b8246a9917b6b14a20894809d67c504b836b09fd | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gabriel.peal@airbnb.com> | Fri Nov 03 21:50:38 2017 -0700 |
committer | Gabriel Peal <gabriel.peal@airbnb.com> | Sat Nov 04 15:33:28 2017 -0700 |
tree | 5281affae3ceeebc6ca6b8dce4671afae0901ef1 | |
parent | 5477874abab82c49518a5163812b310ed48af647 [diff] |
Reverse the iteration direction for keyframe finding Bodymovin only specifies start time for a frame. The end time of the previous frame cam be implied to be immediately before that. During keyframe creation, we set the end frame of a keyframe to the start frame of the next one. However, that means that if we iterate forward to find a keyframe, if you are exactly at the beginning of a keyframe, it will be detected at the end of a keyframe rather than the beginning of the next one. This also fixes an end frame calculate which was one too short for layers with in out animations. #506
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.2.5' }