collapseHorizontally

fun View.collapseHorizontally(duration: Long = 500)(source)