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


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


<h2 id="slideout-animationspec-targetoffset">slideOut</h2>

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


```kotlin
public fun slideOut(
    animationSpec: FiniteAnimationSpec<IntOffset> =
        spring(
            stiffness = Spring.StiffnessMediumLow,
            visibilityThreshold = IntOffset.VisibilityThreshold,
        ),
    targetOffset: (fullSize: IntSize) -> IntOffset,
): ExitTransition
```


This slides out the content of the transition, from an offset of `IntOffset(0, 0)` to the target
offset defined in `targetOffset`. The direction of the slide can be controlled by configuring the
`targetOffset`. A positive x value means sliding from left to right, whereas a negative x value
would slide the content from right to left. Similarly, positive and negative y values correspond
to sliding down and up, respectively.

If the sliding is only desired horizontally or vertically, instead of along both axis, consider
using `slideOutHorizontally` or `slideOutVertically`.

`targetOffset` is a lambda that takes the full size of the content and returns an offset. This
allows the offset to be defined proportional to the full size, or as an absolute value.

#### Parameters

| | |
| --- | --- |
| animationSpec | the animation used for the slide-out, `spring` by default. |
| targetOffset | a lambda that takes the full size of the content and returns the target offset for the slide-out |