Source set: Common
public object FadeThroughNavigationTransitions
Provides fade through navigation transforms adhering to Material 3 motion specifications.
Use these animations for transitions between destinations without a strong spatial or directional relationship, such as switching between tabs in a bottom navigation bar. See Material 3 transition patterns.
Functions
transform
Source set: Common
public fun transform(): ContentTransform
Creates a ContentTransform for a fade through transition.
predictiveBackTransform
Source set: Common
public fun predictiveBackTransform(
backEvent: () -> NavigationEvent,
density: Density,
): MutableContentTransform
Creates a MutableContentTransform configured for the gesture phase of a fade through predictive back transition.
Parameters
| backEvent | provider of the ongoing NavigationEvent |
| density | the Density used to convert display bounds margins to pixels |