slideOutOfContainer
abstract fun slideOutOfContainer(towards: AnimatedContentTransitionScope.SlideDirection, animationSpec: FiniteAnimationSpec<Point> = spring(visibilityThreshold = pointVisibilityThreshold()), targetOffset: (offsetForFullSlide: Int) -> Int = { it }): ExitTransition
Slides the old content out to the container's edge, traveling towards.
The full slide is computed from the arriving content's size and contentAlignment and passed to targetOffset; see slideIntoContainer.
Return
the exit transition.
Parameters
towards
which way the content travels.
animationSpec
how the offset travels, a medium stiffness spring by default.
targetOffset
the offset the content ends at, given the full slide; the full slide itself by default.