commit | b226b33398d4b3eeea3b4ca4695e0905b41ec818 | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gpeal@users.noreply.github.com> | Tue Sep 19 11:33:51 2017 -0700 |
committer | GitHub <noreply@github.com> | Tue Sep 19 11:33:51 2017 -0700 |
tree | f03779a5f456f5ac942c7b6b4c84fc8374b219bb | |
parent | 5c29c96cd7fd11adc4763c244c592158ee876dd4 [diff] |
Lots of scaling improvements (#461) Lottie should now respect scaling and scale types much better. Things like centerInside and centerCrop will now work as expected. The only limitation is that if you set the scale to larger than the canvas then it will only scale up to the maximum size for the current scale type (centerInside/centerCrop). If you change the canvas scaling from extraScale * extraScale then it will scale larger but it'll also end up scaling when you have a fixed width which you don't actually want. For now, I'm optimizing for the case where you want the animation to fit the view.
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.3' }