commit | 8c67322a59bdd8f3f27a8510498930f09a344aba | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gabriel.peal@airbnb.com> | Sat Nov 04 15:31:54 2017 -0700 |
committer | Gabriel Peal <gabriel.peal@airbnb.com> | Sat Nov 04 15:33:34 2017 -0700 |
tree | 9168dc341fdffb8636c84338fd38fe5b7207a6f4 | |
parent | b8246a9917b6b14a20894809d67c504b836b09fd [diff] |
Use ints for start and end frames Bodymovin has some floating point errors in its json that cause frames such as `51` to appear as `51.0000020772726` which means that if you set the frame to 51, you'll get the previous keyframe. #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' }