Function

fadeIn

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

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