slideIntoContainer

abstract fun slideIntoContainer(towards: AnimatedContentTransitionScope.SlideDirection, animationSpec: FiniteAnimationSpec<Point> = spring(visibilityThreshold = pointVisibilityThreshold()), initialOffset: (offsetForFullSlide: Int) -> Int = { it }): EnterTransition

Slides the arriving content in from the container's edge, traveling towards.

The full slide is computed from the container's current size and contentAlignment and passed to initialOffset. slideInHorizontally and slideInVertically cannot express this, since they know only the content's size.

towards is resolved against the reading order when the animation is set up, so a ComponentOrientation change during the transition does not redirect a running slide.

Return

the enter transition.

Parameters

towards

which way the content travels.

animationSpec

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

initialOffset

the offset the content starts at, given the full slide; the full slide itself by default.