animate

abstract fun animate(toSpec: FiniteAnimationSpec<Float>, fromSpec: FiniteAnimationSpec<Float>, block: GlassInteractionScope.() -> Unit)

Applies toSpec when entering and fromSpec when leaving the response declared by block. Animation specs retain the contract of their owning FiniteAnimationSpec type.