Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daimajia/AndroidViewAnimations
Cute view animation collection.
https://github.com/daimajia/AndroidViewAnimations
android animation easing-functions
Last synced: 4 months ago
JSON representation
Cute view animation collection.
- Host: GitHub
- URL: https://github.com/daimajia/AndroidViewAnimations
- Owner: daimajia
- License: mit
- Created: 2014-06-23T03:53:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T23:15:07.000Z (over 3 years ago)
- Last Synced: 2024-08-18T02:01:38.065Z (4 months ago)
- Topics: android, animation, easing-functions
- Language: Java
- Homepage:
- Size: 290 KB
- Stars: 12,419
- Watchers: 471
- Forks: 2,423
- Open Issues: 63
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
- awesome-android - Android View Animations - Cute view animation collection. (Libraries / GUI)
- awesome-android-ui - AndroidViewAnimations
- awesome-android-person - AndroidViewAnimations
- awesome-mobile-ui - daimajia/AndroidViewAnimations
- awesome-android - Android View Animations - Cute view animation collection. (Libraries / GUI)
- awesome-list - daimajia/AndroidViewAnimations - Cute view animation collection. (Java)
- StarryDivineSky - daimajia/AndroidViewAnimations
- -awesome-android-ui - AndroidViewAnimations
- awesome-android-ui - AndroidViewAnimations
- awesome-android-cn - 官网
- awesome-android-ui - https://github.com/daimajia/AndroidViewAnimations
README
# Android View Animations [![Build Status](https://travis-ci.org/daimajia/AndroidViewAnimations.svg)](https://travis-ci.org/daimajia/AndroidViewAnimations)
One day, I saw [an iOS library](https://github.com/ArtFeel/AFViewShaker), which is a view shaker, it's very beautiful. I think Android also need one, and should be better.
So, I started to collect animation effects... and in two days, this project born.
# Demo
![](http://ww3.sinaimg.cn/mw690/610dc034gw1ej75mi2w77g20c30jb4qr.gif)
[Download Demo](https://github.com/daimajia/AndroidViewAnimations/releases/download/v1.1.2/AndroidViewAnimations-1.1.2.apk)
# Usage> Since Version 2.0, NineOldAndroids has been removed. Thanks Jake Wharton.
For making animations more real, I created another project named [Android Easing Functions](https://github.com/daimajia/AnimationEasingFunctions) which is an implementations of [easing functions](http://easings.net/) on Android. So, we need to dependent that project.
## Step 1
#### Gradle
```groovy
dependencies {
implementation 'com.daimajia.androidanimations:library:2.4@aar'
}
```
#### Maven```xml
com.daimajia.androidanimation
library
2.4```
## Step 2
Just like play Yo-yo.
```java
YoYo.with(Techniques.Tada)
.duration(700)
.repeat(5)
.playOn(findViewById(R.id.edit_area));
```### Effects
#### Attension
`Flash`, `Pulse`, `RubberBand`, `Shake`, `Swing`, `Wobble`, `Bounce`, `Tada`, `StandUp`, `Wave`#### Special
`Hinge`, `RollIn`, `RollOut`,`Landing`,`TakingOff`,`DropOut`#### Bounce
`BounceIn`, `BounceInDown`, `BounceInLeft`, `BounceInRight`, `BounceInUp`#### Fade
`FadeIn`, `FadeInUp`, `FadeInDown`, `FadeInLeft`, `FadeInRight``FadeOut`, `FadeOutDown`, `FadeOutLeft`, `FadeOutRight`, `FadeOutUp`
#### Flip
`FlipInX`, `FlipOutX`, `FlipOutY`#### Rotate
`RotateIn`, `RotateInDownLeft`, `RotateInDownRight`, `RotateInUpLeft`, `RotateInUpRight``RotateOut`, `RotateOutDownLeft`, `RotateOutDownRight`, `RotateOutUpLeft`, `RotateOutUpRight`
#### Slide
`SlideInLeft`, `SlideInRight`, `SlideInUp`, `SlideInDown``SlideOutLeft`, `SlideOutRight`, `SlideOutUp`, `SlideOutDown`
#### Zoom
`ZoomIn`, `ZoomInDown`, `ZoomInLeft`, `ZoomInRight`, `ZoomInUp``ZoomOut`, `ZoomOutDown`, `ZoomOutLeft`, `ZoomOutRight`, `ZoomOutUp`
Welcome contribute your amazing animation effect. :-D
# Thanks
- [AFViewShaker](https://github.com/ArtFeel/AFViewShaker)
- [Animate.css](https://github.com/daneden/animate.css)# Why YoYo?
YoYo is a [toy](https://en.wikipedia.org/wiki/Yo-yo), with a lot of [Techniques](./library/src/main/java/com/daimajia/androidanimations/library/Techniques.java).
# About me
(2013)
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]).(2019)
Five years later, now I become an investment associate in China.Welcome to send your business plan to [me](mailto:[email protected]). Maybe I would have a better understanding on your startup project than others. Trust me.