---
title: "splineBasedDecayDeprecated"
description: "Creates a [DecayAnimationSpec] using the native Android fling decay. This can then be used to
animate any type [T]."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** Moved to common code

```kotlin
public fun <T> splineBasedDecayDeprecated(density: Density): DecayAnimationSpec<T>
```


Creates a `DecayAnimationSpec` using the native Android fling decay. This can then be used to
animate any type `T`.

#### Parameters

| | |
| --- | --- |
| density | density of the display |




