<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3AdaptiveApi
class ThreePaneMotion
internal constructor(
    private val primaryPaneMotion: PaneMotion,
    private val secondaryPaneMotion: PaneMotion,
    private val tertiaryPaneMotion: PaneMotion,
)
```

The class that provides motion settings for three pane scaffolds like [ListDetailPaneScaffold](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/composable-functions/ListDetailPaneScaffold)
and [SupportingPaneScaffold](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/composable-functions/SupportingPaneScaffold).

## Functions

<h2 id="get-role">get</h2>

```kotlin
operator fun get(role: ThreePaneScaffoldRole): PaneMotion
```

Gets the specified [PaneMotion](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/interfaces/PaneMotion) of a given pane role.

#### Parameters

| | |
| --- | --- |
| role | the specified role of the pane, see [ListDetailPaneScaffoldRole](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/objects/ListDetailPaneScaffoldRole) and [SupportingPaneScaffoldRole](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/objects/SupportingPaneScaffoldRole). |

## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val NoMotion =
        ThreePaneMotion(PaneMotion.NoMotion, PaneMotion.NoMotion, PaneMotion.NoMotion)
```

A default [ThreePaneMotion](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/classes/ThreePaneMotion) instance that specifies no motions.