<div class='type'>Class</div>


<a id='references'></a>

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


```kotlin
public sealed class ExitTransition
```


`ExitTransition` defines how an `AnimatedVisibility` Composable disappears on screen as it
becomes not visible. The 4 categories of `ExitTransition` available are:
1. fade: `fadeOut`
2. scale: `scaleOut`
3. slide: `slideOut`, `slideOutHorizontally`, `slideOutVertically`
4. shrink: `shrinkOut`, `shrinkHorizontally`, `shrinkVertically`

`ExitTransition.None` can be used when no exit transition is desired. Different `ExitTransition`s
can be combined using plus operator, for example:


__Note__: `fadeOut` and `slideOut` do not affect the size of the `AnimatedVisibility` composable.
In contrast, `shrinkOut` (and `shrinkHorizontally`, `shrinkVertically`) will shrink the clip
bounds to reveal less and less of the content. This will automatically animate other layouts to
fill in the space, very much like `animateContentSize`.


## Functions



<h2 id="plus-exit">plus</h2>

```kotlin
public operator fun plus(exit: ExitTransition): ExitTransition
```


Combines different exit transitions. The order of the `ExitTransition`s being combined does
not matter, as these `ExitTransition`s will start simultaneously. The order of applying
transforms from these exit transitions (if defined) is: veil first, then alpha and scale,
shrink or expand, then slide.

#### Parameters

| | |
| --- | --- |
| exit | another `ExitTransition` to be combined. |



## Companion Object

#### Properties

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


```kotlin
public val None: ExitTransition
```


This can be used when no built-in `ExitTransition` (i.e. fade/slide, etc) is desired for
the `AnimatedVisibility`, but rather the children are defining their own exit animation
using the `Transition` scope.

__Note:__ If `None` is used, and nothing is animating in the Transition<EnterExitState>
scope that `AnimatedVisibility` provided, the content will be removed from
`AnimatedVisibility` right away.