Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daimajia/animationeasingfunctions
Android Animation Easing Functions. Let's make animation more real!
https://github.com/daimajia/animationeasingfunctions
android-easing-functions animation easing-functions
Last synced: 5 days ago
JSON representation
Android Animation Easing Functions. Let's make animation more real!
- Host: GitHub
- URL: https://github.com/daimajia/animationeasingfunctions
- Owner: daimajia
- License: mit
- Created: 2014-06-29T07:02:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T03:29:49.000Z (over 4 years ago)
- Last Synced: 2024-10-29T17:44:26.587Z (about 2 months ago)
- Topics: android-easing-functions, animation, easing-functions
- Language: Java
- Size: 144 KB
- Stars: 2,470
- Watchers: 111
- Forks: 410
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android Easing Functions [![Build Status](https://travis-ci.org/daimajia/AnimationEasingFunctions.svg?branch=master)](https://travis-ci.org/daimajia/AnimationEasingFunctions)
This project is originally from my another project, [AndroidViewAnimation](https://github.com/daimajia/AndroidViewAnimations), which is an animation collection, to help you make animation easier.
While, I was still unsatisfied with the animation effect.
So, I started to explore how to make it more and more real.
I found the [Easing Functions](http://easings.net/) made by [Robert Penne](http://robertpenner.com/), then, I implemented Easing Functions and make a lovely demo.
## Demo
![](http://ww4.sinaimg.cn/mw690/610dc034jw1ehuzoul4h8g20b00gmh9s.gif)
## Usage
> `NineOldAndroids` has been removed since version 2.0. Thanks Jake Wharton.
**minSdkVersion: 11**
### Step 1
Gradle
```groovy
implementation 'com.daimajia.easing:library:2.4@aar'
```
or maven```xml
com.daimajia.easing
library
2.4
apklib```
### Step 2
Just like a glider.
```java
AnimatorSet set = new AnimatorSet();
set.playTogether(
Glider.glide(Skill.BounceEaseInOut, 1200, ObjectAnimator.ofFloat(mTarget, "translationY", 0, 100))
);set.setDuration(1200);
set.start();
```#### Tips
If you encounter exceptions such as `ClassNotFoundExceptions` ([#4](https://github.com/daimajia/AnimationEasingFunctions/issues/4)), please add the following to your `proguard-project.txt`:
```
-keep class com.daimajia.easing.** { *; }
-keep interface com.daimajia.easing.** { *; }
```More details [visit official guide](http://developer.android.com/tools/help/proguard.html#configuring).
# About me
A student in mainland China.
Welcome to [offer me an internship](mailto:[email protected]).
If you have any new idea about this project, feel free to [contact me](mailto:[email protected]).