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

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


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

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


```kotlin
public class TweenSpec<T>(
    public val durationMillis: Int = DefaultDurationMillis,
    public val delay: Int = 0,
    public val easing: Easing = FastOutSlowInEasing,
) : DurationBasedAnimationSpec<T>
```


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

#### Parameters

| | |
| --- | --- |
| durationMillis | duration of the `VectorizedTweenSpec` animation. |
| delay | the number of milliseconds the animation waits before starting, 0 by default. |
| easing | the easing curve used by the animation. `FastOutSlowInEasing` by default. |




