transition

fun Modifier.transition(progress: Float, goingBack: Boolean, animation: ModifierAnimation): Modifier

Applies a screen transition animation to the receiving Modifier.

Reads the animation configuration and translates the composable according to the Transition strategy, respecting back-navigation direction via goingBack.

Return

A Modifier that applies the appropriate androidx.compose.ui.graphics.graphicsLayer translation for the current progress.

Parameters

progress

Current animation progress (0f → 1f).

goingBack

Whether this navigation is a back / pop action.

animation

The ModifierAnimation describing the transition details.