# PaneMotion

# PaneMotion

Artifact:[androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneMotion.kt+class:androidx.compose.material3.adaptive.layout.PaneMotion)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)
Common/All
  - Cmn  

  ```
  @ExperimentalMaterial3AdaptiveApi
  sealed interface PaneMotion
  ```

*** ** * ** ***

Interface to specify a custom pane enter/exit motion when a pane's visibility changes.

## Summary

|                                                                                                                                                                                                    ### Nested types                                                                                                                                                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[ExperimentalMaterial3AdaptiveApi](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/ExperimentalMaterial3AdaptiveApi) `value class `[PaneMotion.Type](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion.Type) Indicates the current type of pane motion, like if the pane is entering or exiting, or is kept showing or hidden. |

|                                          ### Public companion properties                                           |
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [AnimateBounds](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#AnimateBounds()) The default pane motion that will animate panes bounds with the given animation specs during motion.                                                | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [EnterAsModal](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#EnterAsModal()) The default pane motion that will show the pane as a modal.                                                                                           | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [EnterFromLeft](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#EnterFromLeft()) The default pane motion that will slide panes in from left.                                                                                         | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [EnterFromLeftDelayed](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#EnterFromLeftDelayed()) The default pane motion that will slide panes in from left with a delay, usually to avoid the interference of other exiting panes.    | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [EnterFromRight](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#EnterFromRight()) The default pane motion that will slide panes in from right.                                                                                      | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [EnterFromRightDelayed](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#EnterFromRightDelayed()) The default pane motion that will slide panes in from right with a delay, usually to avoid the interference of other exiting panes. | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [EnterWithExpand](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#EnterWithExpand()) The default pane motion that will expand panes from a zero size.                                                                                | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [ExitAsModal](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#ExitAsModal()) The default pane motion that will hide the pane as a modal.                                                                                             | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [ExitToLeft](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#ExitToLeft()) The default pane motion that will slide panes out to left.                                                                                                | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [ExitToRight](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#ExitToRight()) The default pane motion that will slide panes out to right.                                                                                             | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [ExitWithShrink](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#ExitWithShrink()) The default pane motion that will shrink panes until it's gone.                                                                                   | Cmn |
| [PaneMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion) | [NoMotion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#NoMotion()) The default pane motion that no animation will be performed.                                                                                                  | Cmn |

|                                                    ### Public properties                                                     |
|------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [PaneMotion.Type](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion.Type) | [type](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion#type()) The type of the motion, like exiting, entering, etc. | Cmn |

## Public companion properties

### AnimateBounds

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val AnimateBounds: PaneMotion
```

The default pane motion that will animate panes bounds with the given animation specs during motion. Note that this should only be used when the associated pane is keeping showing during the motion.  

### EnterAsModal

Cmn  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.2.0)  

```
val EnterAsModal: PaneMotion
```

The default pane motion that will show the pane as a modal. Note that this should only be used when the associated pane is entering into a levitated state from a hidden state.  

### EnterFromLeft

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val EnterFromLeft: PaneMotion
```

The default pane motion that will slide panes in from left. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.  

### EnterFromLeftDelayed

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val EnterFromLeftDelayed: PaneMotion
```

The default pane motion that will slide panes in from left with a delay, usually to avoid the interference of other exiting panes. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.  

### EnterFromRight

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val EnterFromRight: PaneMotion
```

The default pane motion that will slide panes in from right. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.  

### EnterFromRightDelayed

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val EnterFromRightDelayed: PaneMotion
```

The default pane motion that will slide panes in from right with a delay, usually to avoid the interference of other exiting panes. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.  

### EnterWithExpand

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val EnterWithExpand: PaneMotion
```

The default pane motion that will expand panes from a zero size. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.  

### ExitAsModal

Cmn  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.2.0)  

```
val ExitAsModal: PaneMotion
```

The default pane motion that will hide the pane as a modal. Note that this should only be used when the associated pane is exiting from a leviated state to a hidden state.  

### ExitToLeft

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val ExitToLeft: PaneMotion
```

The default pane motion that will slide panes out to left. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.  

### ExitToRight

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val ExitToRight: PaneMotion
```

The default pane motion that will slide panes out to right. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.  

### ExitWithShrink

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val ExitWithShrink: PaneMotion
```

The default pane motion that will shrink panes until it's gone. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.  

### NoMotion

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val NoMotion: PaneMotion
```

The default pane motion that no animation will be performed.

## Public properties

### type

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
val type: PaneMotion.Type
```

The type of the motion, like exiting, entering, etc. See[Type](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMotion.Type).