---
title: "getVelocityFromNanos"
description: "Returns the velocity of the animation at the given play time."
type: "function"
---

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


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


```kotlin
public fun <T, V : AnimationVector> Animation<T, V>.getVelocityFromNanos(playTimeNanos: Long): T
```


Returns the velocity of the animation at the given play time.

#### Parameters

| | |
| --- | --- |
| playTimeNanos | the play time that is used to calculate the velocity of the animation. |




