commit | d8fcf0ab1fca5aff58c797d6e85917d21a2f5cc1 | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gpeal@users.noreply.github.com> | Thu Dec 14 11:52:34 2017 -0500 |
committer | GitHub <noreply@github.com> | Thu Dec 14 11:52:34 2017 -0500 |
tree | af9c953167f9c7fac1ba23b5effb4a1ea0a3ea10 | |
parent | 7efb9f16bc24dd588d50dfe323184c837e89ef6a [diff] |
Dynamic properties (#564) This PR adds the ability to dynamically change properties at runtime. The key parts are targeting content(s) with a KeyPath and then updating their value either with a LottieStaticValueCallback for a single fire and forget value or a LottieValueCallback which will be called with the current animation value information every time the animation is rendered. See the docs for relevant classes for more info.
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.2-SNAPSHOT' }