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


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


<h2 id="scalein-animationspec-initialscale-transformorigin">scaleIn</h2>

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


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


This scales the content as it appears, from an initial scale (defined in `initialScale`) to 1f.
`transformOrigin` defines the pivot point in terms of fraction of the overall size.
`TransformOrigin.Center` by default. `scaleIn` can be used in combination with any other type of
`EnterTransition` using the plus operator (e.g. `scaleIn() + slideInHorizontally()`)

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.
`scaleIn` can be combined with `expandIn`/`expandHorizontally`/`expandVertically` to coordinate
layout size change while scaling. For example:

#### Parameters

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