fadeOut

@Stable
fun fadeOut(animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow), targetAlpha: Float = 0.0f): ExitTransition

Fades the content out, from full opacity to targetAlpha.

Return

the exit transition.

Parameters

animationSpec

how the opacity travels, a medium-low stiffness spring by default.

targetAlpha

the opacity the content ends at, fully transparent 0f by default.