slideOutVertically

@Stable
fun slideOutVertically(animationSpec: FiniteAnimationSpec<Point> = DEFAULT_SLIDE_SPRING, targetOffsetY: (fullHeight: Int) -> Int = { -it / 2 }): ExitTransition

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

Return

the exit transition.

Parameters

animationSpec

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

targetOffsetY

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