slideIn

@Stable
fun slideIn(animationSpec: FiniteAnimationSpec<Point> = DEFAULT_SLIDE_SPRING, initialOffset: (fullSize: Dimension) -> Point): EnterTransition

Slides the content in, from initialOffset to its place in the container.

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

For one axis, use slideInHorizontally or slideInVertically.

Return

the enter transition.

Parameters

animationSpec

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

initialOffset

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