duration

fun duration(duration: Long): <ERROR CLASS>

Set the duration of the animation in milliseconds.