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


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


<h2 id="fadeout-animationspec-targetalpha">fadeOut</h2>

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


```kotlin
public fun fadeOut(
    animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow),
    targetAlpha: Float = 0f,
): ExitTransition
```


This fades out the content of the transition, from full opacity to the specified target alpha
(i.e. `targetAlpha`), using the supplied `animationSpec`. By default, the content will be faded
out to fully transparent (i.e. `targetAlpha` defaults to 0), and `animationSpec` uses `spring` by
default.

#### Parameters

| | |
| --- | --- |
| animationSpec | the `FiniteAnimationSpec` for this animation, `spring` by default |
| targetAlpha | the target alpha of the exit transition, 0f by default |