<h2 id="foreachreversed-action">forEachReversed</h2>

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

```kotlin
@ExperimentalMaterial3AdaptiveApi
inline fun <Role : PaneScaffoldRole> PaneScaffoldMotionDataProvider<Role>.forEachReversed(
    action: (Role, PaneMotionData) -> Unit
)
```

Perform actions on each [PaneMotionData](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/classes/PaneMotionData), in the right-to-left order of the panes in the
scaffold.

#### Parameters

| | |
| --- | --- |
| action | action to perform on each [PaneMotionData](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/classes/PaneMotionData). |