slideInVertically

@Stable
fun slideInVertically(animationSpec: FiniteAnimationSpec<Point> = DEFAULT_SLIDE_SPRING, initialOffsetY: (fullHeight: Int) -> Int = { -it / 2 }): EnterTransition

Slides the content in vertically, from initialOffsetY to its place in the container.

Return

the enter transition.

Parameters

animationSpec

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

initialOffsetY

the vertical offset the content starts at, given its full height; half that height up by default.