tween

abstract fun <T> tween(durationMillis: Int, delayMillis: Int, easing: (Float) -> Float): TweenSpec<T>

创建一个 TweenSpec(补间动画),使用给定的参数。

Return

返回一个 TweenSpec 实例。

Parameters

durationMillis

动画持续的总毫秒数。

delayMillis

动画开始前的延迟毫秒数。

easing

缓动曲线函数,用于控制动画的速度变化率。