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


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


<h2 id="fadein-animationspec-initialalpha">fadeIn</h2>

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


```kotlin
public fun fadeIn(
    animationSpec: FiniteAnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow),
    initialAlpha: Float = 0f,
): EnterTransition
```


This fades in the content of the transition, from the specified starting alpha (i.e.
`initialAlpha`) to 1f, using the supplied `animationSpec`. `initialAlpha` defaults to 0f, and
`spring` is used by default.

#### Parameters

| | |
| --- | --- |
| animationSpec | the `FiniteAnimationSpec` for this animation, `spring` by default |
| initialAlpha | the starting alpha of the enter transition, 0f by default |