Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Android Animation Easing Functions. Let's make animation more real!

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]).