tieskedh
06/27/2018, 10:21 AM/**
* Creates a parallel animation from multiple animations.
*
* @receiver The base animation
* @param animation The animations to play with this one
* @param op Modify the animation after it is created
* @return A ParallelTransition
*/
fun Animation.and(vararg animation: Animation, op: ParallelTransition.() -> Unit = {}) = when {
this is ParallelTransition -> this.apply { children += animation }
else -> ParallelTransition(this, *animation)
}.also(op)
isn't merging an unexpected result based on doc or are animations not reusable?
(just trying to document everything when I stumbled upon this)