tween

fun <T> tween(duration: Duration = 300.ms, easing: Easing = Easing.FastOutSlowIn, delay: Duration = ZERO): DurationBasedAnimationSpec<T>

Creates a TweenSpec for time-based animations with an easing curve.

tween<Float>(duration = 300.ms, easing = Easing.EaseInOut)
tween<Float>(duration = 500.ms, easing = Easing.FastOutSlowIn, delay = 100.ms)

Parameters

duration

Total animation duration. Defaults to 300ms.

easing

The easing curve controlling the rate of change. Defaults to Easing.FastOutSlowIn.

delay

Time to wait before starting the animation. Defaults to zero.