flipXAnimation
inline fun flipXAnimation(initFront: View, initBack: View, frontAnima: (ObjectAnimator) -> Unit = { animator ->
animator.setDuration(500)
animator.interpolator = AccelerateInterpolator()
}, backAnim: (ObjectAnimator) -> Unit = { animator ->
animator.setDuration(500)
animator.interpolator = DecelerateInterpolator()
})
X-axis flip animation.
Since
0.5.3
Parameters
initFront
Front-facing component.
initBack
Component shown on the back.
frontAnima
Configure the animation of the view in View.VISIBLE.
backAnim
Configure the animation of the view in View.GONE.