---
title: "generateDecayAnimationSpec"
description: "Creates a [DecayAnimationSpec] from a [FloatDecayAnimationSpec] by applying the given
[FloatDecayAnimationSpec] on every dimension of the [AnimationVector] that [T] converts to."
type: "function"
---

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


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


```kotlin
public fun <T> FloatDecayAnimationSpec.generateDecayAnimationSpec(): DecayAnimationSpec<T>
```


Creates a `DecayAnimationSpec` from a `FloatDecayAnimationSpec` by applying the given
`FloatDecayAnimationSpec` on every dimension of the `AnimationVector` that `T` converts to.



