shrinkOut

@Stable
fun shrinkOut(animationSpec: FiniteAnimationSpec<Dimension> = DEFAULT_SIZE_SPRING, shrinkTowards: Alignment = Alignment.BottomEnd, clip: Boolean = true, targetSize: (fullSize: Dimension) -> Dimension = { Dimension(0, 0) }): ExitTransition

Shrinks the space the content is given, from the content's full size to targetSize.

The content keeps its own size and is aligned inside that space, so the corner shrinkTowards names stays in place. Content outside the space is clipped when clip is true; see expandIn.

For one axis, use shrinkHorizontally or shrinkVertically.

Return

the exit transition.

Parameters

animationSpec

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

shrinkTowards

the corner the space shrinks towards, the bottom trailing one by default.

clip

whether to clip content to the animated space; true by default.

targetSize

the space the content ends in, given its full size; empty by default.