---
title: "tween"
description: "Creates a [TweenSpec] configured with the given duration, delay and easing curve."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun <T> tween(
    durationMillis: Int = DefaultDurationMillis,
    delayMillis: Int = 0,
    easing: Easing = FastOutSlowInEasing,
): TweenSpec<T>
```


Creates a `TweenSpec` configured with the given duration, delay and easing curve.

#### Parameters

| | |
| --- | --- |
| durationMillis | duration of the animation spec |
| delayMillis | the amount of time in milliseconds that animation waits before starting |
| easing | the easing curve that will be used to interpolate between start and end |




