ResolvedNavTransition

data class ResolvedNavTransition(val durationMillis: Int, val alpha: (Float) -> Float = { 1f }, val scaleX: (Float) -> Float = { 1f }, val scaleY: (Float) -> Float = { 1f }, val translationX: (Float) -> Float = { 0f }, val translationY: (Float) -> Float = { 0f }, val rotationZ: (Float) -> Float = { 0f })(source)

The concrete, renderer-ready form of a NavTransition.

Produced by NavTransition.resolve; consumed by the animation layer in NavigationRender. All transform lambdas accept a normalised progress value in [0, 1].

Constructors

Link copied to clipboard
constructor(durationMillis: Int, alpha: (Float) -> Float = { 1f }, scaleX: (Float) -> Float = { 1f }, scaleY: (Float) -> Float = { 1f }, translationX: (Float) -> Float = { 0f }, translationY: (Float) -> Float = { 0f }, rotationZ: (Float) -> Float = { 0f })

Properties

Link copied to clipboard
val alpha: (Float) -> Float

Progress → opacity mapping.

Link copied to clipboard

Total animation duration in milliseconds.

Link copied to clipboard

Progress → Z-axis rotation in degrees mapping.

Link copied to clipboard
val scaleX: (Float) -> Float

Progress → horizontal scale factor mapping.

Link copied to clipboard
val scaleY: (Float) -> Float

Progress → vertical scale factor mapping.

Link copied to clipboard

Progress → horizontal pixel offset mapping.

Link copied to clipboard

Progress → vertical pixel offset mapping.