ComposeTransition

fun interface ComposeTransition

Transition are usually implemented by customizing the Modifier.graphicsLayer.

You will receive a "progress" (float) argument that goes from 0f -> 1f i.e the lifetime of the animation which you can use to modify alpha, translation on the modifier.

You will also receive "width" & "height" of the container in which this navigation is hosted.

Functions

Link copied to clipboard
abstract fun invoke(modifier: Modifier, width: Int, height: Int, progress: Float): Modifier