MaterialFade

fun MaterialFade(visible: Boolean, modifier: Modifier = Modifier, enterDurationMillis: Int = MotionConstants.DefaultFadeInDuration, exitDurationMillis: Int = MotionConstants.DefaultFadeOutDuration, label: String = "MaterialFade", content: @Composable () -> Unit)(source)

MaterialFade animates the appearance and disappearance of its content, as visible value changes.

Parameters

visible

defines whether the content should be visible

modifier

modifier for the Layout created to contain the content

enterDurationMillis

enter duration

exitDurationMillis

exit duration

label

An optional label to differentiate from other animations in Android Studio.

See also

com.google.android.material.transition.MaterialFade