Function

fadeIn

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

fadeIn

Source set: 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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: