tween

Function

Common
public fun <T> tween(
    durationMillis: Int = DefaultDurationMillis,
    delayMillis: Int = 0,
    easing: Easing = FastOutSlowInEasing,
): TweenSpec<T>

Creates a TweenSpec configured with the given duration, delay and easing curve.

Parameters

durationMillisduration of the animation spec
delayMillisthe amount of time in milliseconds that animation waits before starting
easingthe easing curve that will be used to interpolate between start and end