Transition

@Serializable
sealed class Transition

Represents a screen transition animation strategy.

Defines the direction, duration, and reversal behavior used when navigating between composable destinations. Custom implementations can provide their own animation parameters.

Inheritors

Types

Link copied to clipboard
@Serializable
data class None(val duration: Int = AnimationConstants.DefaultDurationMillis, val isReversed: Boolean? = null, val isVertical: Boolean? = null) : Transition

A no-op transition that applies no animation.

Link copied to clipboard
@Serializable
data class Slide(val duration: Int = AnimationConstants.DefaultDurationMillis, val isReversed: Boolean? = null, val isVertical: Boolean = false) : Transition

A slide transition that moves the screen in or out.

Properties

Link copied to clipboard
abstract val duration: Int
Link copied to clipboard
abstract val isReversed: Boolean?
Link copied to clipboard
abstract val isVertical: Boolean?