Function

fadeIn

This fades in the content of the transition, from the specified starting alpha (i.

fadeIn

Common
public fun fadeIn(
    animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow),
    initialAlpha: Float = 0f,
): EnterTransition

This fades in the content of the transition, from the specified starting alpha (i.e. initialAlpha) to 1f, using the supplied animationSpec. initialAlpha defaults to 0f, and spring is used by default.

Parameters

animationSpec the FiniteAnimationSpec for this animation, spring by default
initialAlpha the starting alpha of the enter transition, 0f by default