Skip to content

Instantly share code, notes, and snippets.

@wangchauyan
Created April 18, 2019 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangchauyan/44cca4ccd178d05e1b90738b44e9b426 to your computer and use it in GitHub Desktop.
Save wangchauyan/44cca4ccd178d05e1b90738b44e9b426 to your computer and use it in GitHub Desktop.
Android Onboarding Pop Animation
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