scaleOut

@Stable
fun scaleOut(animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow), targetScale: Float = 0.0f, transformOrigin: TransformOrigin = TransformOrigin.Center): ExitTransition

Scales the content out, from its own size to targetScale, around transformOrigin.

A scale changes how the content is painted, not its layout size; see scaleIn.

Return

the exit transition.

Parameters

animationSpec

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

targetScale

the scale the content ends 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.