Object

FadeThroughNavigationTransitions

Provides fade through navigation transforms adhering to Material 3 motion specifications.

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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: