<div class='type'>Function</div>


<a id='references'></a>


<h2 id="sizetransform-clip-sizeanimationspec">SizeTransform</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun SizeTransform(
    clip: Boolean = true,
    sizeAnimationSpec: (initialSize: IntSize, targetSize: IntSize) -> FiniteAnimationSpec<IntSize> =
        { _, _ ->
            spring(
                stiffness = Spring.StiffnessMediumLow,
                visibilityThreshold = IntSize.VisibilityThreshold,
            )
        },
): SizeTransform
```


This creates a `SizeTransform` with the provided `clip` and `sizeAnimationSpec`. By default,
`clip` will be true. This means during the size animation, the content will be clipped to the
animated size. `sizeAnimationSpec` defaults to return a `spring` animation.