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


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


<h2 id="scaleout-animationspec-targetscale-transformorigin">scaleOut</h2>

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


```kotlin
public fun scaleOut(
    animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow),
    targetScale: Float = 0f,
    transformOrigin: TransformOrigin = TransformOrigin.Center,
): ExitTransition
```


This scales the content of the exit transition, from 1f to the target scale defined in
`targetScale`. `transformOrigin` defines the pivot point in terms of fraction of the overall
size. By default it's `TransformOrigin.Center`. `scaleOut` can be used in combination with any
other type of `ExitTransition` using the plus operator (e.g. `scaleOut() + fadeOut()`)

Note: Scale is applied __before__ slide. This means when using `slideIn`/`slideOut` with
`scaleIn`/`scaleOut`, the amount of scaling needs to be taken into account when sliding.

The scaling will change the visual of the content, but will __not__ affect the layout size.
`scaleOut` can be combined with `shrinkOut`/`shrinkHorizontally`/`shrinkVertically` for
coordinated layout size change animation. For example:

#### Parameters

| | |
| --- | --- |
| animationSpec | the animation used for the slide-out, `spring` by default. |
| targetScale | the target scale for the exit transition, 0 by default. |
| transformOrigin | the pivot point in terms of fraction of the overall size. By default it's `TransformOrigin.Center`. |