---
title: "DurationBasedAnimationSpec"
description: "This describes [AnimationSpec]s that are based on a fixed duration, such as [KeyframesSpec],
[TweenSpec], and [SnapSpec]. These duration based specs can repeated when put into a
[RepeatableSpec]."
type: "interface"
---

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


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

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



```kotlin
public interface DurationBasedAnimationSpec<T> : FiniteAnimationSpec<T>
```


This describes `AnimationSpec`s that are based on a fixed duration, such as `KeyframesSpec`,
`TweenSpec`, and `SnapSpec`. These duration based specs can repeated when put into a
`RepeatableSpec`.


## Functions

```kotlin
override fun <V : AnimationVector> vectorize(
        converter: TwoWayConverter<T, V>
    ): VectorizedDurationBasedAnimationSpec<V>
```


