unveilIn

@Stable
fun unveilIn(animationSpec: FiniteAnimationSpec<Color> = spring(stiffness = Spring.StiffnessMediumLow), initialColor: Color = DefaultVeilColor, matchParentSize: Boolean = false): EnterTransition

Unveils the content as it enters: a scrim of initialColor over it animates to fully transparent.

The scrim is filled in the container's own space, so a fade or a scale running with it moves the content under the scrim, never the scrim itself.

Return

the enter transition.

Parameters

animationSpec

how the scrim's color travels, a medium-low stiffness spring by default.

initialColor

the color the scrim starts at, half-transparent black by default.

matchParentSize

whether the scrim covers the container's whole box instead of only the content's rectangle; false by default.