Custom
@Serializable
Fully custom transition using per-frame transform lambdas.
Each lambda receives the animation progress value in [0, 1] and returns the corresponding transform value. Functions that are not overridden use identity defaults (no-op).
Parameters
durationMillis
Total duration of the animation in milliseconds.
alpha
Maps progress → opacity.
scaleX
Maps progress → horizontal scale factor.
scaleY
Maps progress → vertical scale factor.
translationX
Maps progress → horizontal translation in pixels.
translationY
Maps progress → vertical translation in pixels.
rotationZ
Maps progress → rotation around the Z-axis in degrees.
Functions
Link copied to clipboard
fun NavTransition.resolve(screenWidth: Float, screenHeight: Float, isForward: Boolean = true): ResolvedNavTransition
Resolves this NavTransition into a ResolvedNavTransition with concrete per-frame lambdas.