slideInHorizontally

@Stable
fun slideInHorizontally(animationSpec: FiniteAnimationSpec<Point> = DEFAULT_SLIDE_SPRING, initialOffsetX: (fullWidth: Int) -> Int = { -it / 2 }): EnterTransition

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

Return

the enter transition.

Parameters

animationSpec

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

initialOffsetX

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