slideOutHorizontally

@Stable
fun slideOutHorizontally(animationSpec: FiniteAnimationSpec<Point> = DEFAULT_SLIDE_SPRING, targetOffsetX: (fullWidth: Int) -> Int = { -it / 2 }): ExitTransition

Slides the content out horizontally, from its place in the container to targetOffsetX.

Return

the exit transition.

Parameters

animationSpec

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

targetOffsetX

the horizontal offset the content ends at, given its full width; half that width to the left by default.