Function

tween

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

tween

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

durationMillis duration of the animation spec
delayMillis the amount of time in milliseconds that animation waits before starting
easing the easing curve that will be used to interpolate between start and end