scaleIn

@Stable
fun scaleIn(animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow), initialScale: Float = 0.0f, transformOrigin: TransformOrigin = TransformOrigin.Center): EnterTransition

Scales the content in, from initialScale to its own size, around transformOrigin.

A scale changes how the content is painted, not its layout size. Combine it with expandIn to animate the layout size too. Under a Foundation parent, content scaled above 1f paints past the container unless the transition also changes its size with an expandIn or shrinkOut that clips, or an AnimatedContent clips it with its SizeTransform. Under any other parent, the container's bounds clip it.

Return

the enter transition.

Parameters

animationSpec

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

initialScale

the scale the content starts at, 0f by default. Any value is accepted; a negative one mirrors the content around transformOrigin.

transformOrigin

the point the scale is applied around, the center of the content by default.