Function

tween

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

tween

Source set: 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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: