slideOut

@Stable
fun slideOut(animationSpec: FiniteAnimationSpec<Point> = DEFAULT_SLIDE_SPRING, targetOffset: (fullSize: Dimension) -> Point): ExitTransition

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

The offset is relative to where the content is laid out: a positive x moves it right, a positive y moves it down. Content past the container's edge is clipped.

For one axis, use slideOutHorizontally or slideOutVertically.

Return

the exit transition.

Parameters

animationSpec

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

targetOffset

the offset the content ends at, given its full size.