expandVertically

@Stable
fun expandVertically(animationSpec: FiniteAnimationSpec<Dimension> = DEFAULT_SIZE_SPRING, expandFrom: Alignment.Vertical = Alignment.Bottom, clip: Boolean = true, initialHeight: (fullHeight: Int) -> Int = { 0 }): EnterTransition

Expands the height the content is given, from initialHeight to the content's full height, keeping the full width. The content is centered horizontally.

Return

the enter transition.

Parameters

animationSpec

how the height travels, a medium-low stiffness spring by default.

expandFrom

the edge the height grows from, the bottom by default. Any alignment other than Alignment.Top and Alignment.Bottom centers the content vertically.

clip

whether to clip content to the animated space; true by default.

initialHeight

the height the content starts in, given its full height; 0 by default.