Created
April 18, 2019 22:53
-
-
Save wangchauyan/44cca4ccd178d05e1b90738b44e9b426 to your computer and use it in GitHub Desktop.
Android Onboarding Pop Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun hopAnimation() { | |
val animation = bottomContainer | |
.animate() | |
.translationYBy(-40f) | |
.alpha(0.9f) | |
.setDuration(400) | |
animation.withEndAction { | |
bottomContainer | |
.animate() | |
.alpha(0.5f) | |
.translationYBy(40f).duration = 400 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment