---
title: "snap"
description: "Creates a Snap animation for immediately switching the animating value to the end value."
type: "function"
---

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


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


```kotlin
public fun <T> snap(delayMillis: Int = 0): SnapSpec<T>
```


Creates a Snap animation for immediately switching the animating value to the end value.

#### Parameters

| | |
| --- | --- |
| delayMillis | the number of milliseconds to wait before the animation runs. 0 by default. |




