AnimationX
1 min readMay 20, 2020
An simple & awesome animation library written in Kotlin for Android
Usages:
/**
* Animation can be applied to all views which extends [View]
* Just call the extension function's according to your requirement
* To show animation according to your requirement, call the extension function & pass the animation key
*/
/**
* To show attention animation, call [animationXAttention] & pass the animation key
*/
imageView.animationXAttention(Attention.ATTENTION_BOUNCE)
/**
* To show bounce animation, call [animationXBounce] & pass the animation key
*/
imageView.animationXBounce(Bounce.BOUNCE_IN)
/**
* To show fade animation, call [animationXFade] & pass the animation key
*/
imageView.animationXFade(Fade.FADE_IN_DOWN)
/**
* To show flip animation, call [animationXFlip] & pass the animation key
*/
imageView.animationXFlip(Flip.FLIP_IN_X)
/**
* To show rotate animation, call [animationXRotate] & pass the animation key
*/
imageView.animationXRotate(Rotate.ROTATE_IN)
/**
* To show slide animation, call [animationXSlide] & pass the animation key
*/
imageView.animationXSlide(Slide.SLIDE_IN_DOWN)
/**
* To show zoom animation, call [animationXZoom] & pass the animation key
*/
imageView.animationXZoom(Zoom.ZOOM_IN_DOWN)
/**
* On the other hand, if you want to show animation manually
*/
AnimationX.setDuration(2000)
.setAnimation(Attention.bounce(imageView, AnimationX.getNewAnimatorSet())).start()