SizeTransform

fun SizeTransform(clip: Boolean = true, sizeAnimationSpec: (initialSize: Dimension, targetSize: Dimension) -> FiniteAnimationSpec<Dimension> = { _, _ -> spring(stiffness = Spring.StiffnessMediumLow, visibilityThreshold = dimensionVisibilityThreshold()) }): SizeTransform

Builds a SizeTransform with the provided clip and sizeAnimationSpec.

Return

the size transform.

Parameters

clip

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

sizeAnimationSpec

the size animation spec, given the container's initial size and the target content's size; a medium-low stiffness spring by default.