---
title: "remoteSpring"
description: "Creates a [RemoteAnimationSpec] for physics-based spring animations."
type: "function"
lastmod: "2026-09-24"
---
## API Reference

### remoteSpring

> Source set: Android

```kotlin
public fun remoteSpring(
    stiffness: Float = 50f,
    dampingRatio: Float = 1f,
    stopThreshold: Float = 0.001f,
    boundaryMode: Int = 0,
): RemoteAnimationSpec
```

Creates a [RemoteAnimationSpec](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteAnimationSpec/api) for physics-based spring animations.

#### Parameters

| | |
| --- | --- |
| stiffness | Spring stiffness. |
| dampingRatio | Damping ratio (1.0 = no bounce, < 1.0 = bouncy). |
| stopThreshold | Threshold for stopping velocity/displacement. |
| boundaryMode | Boundary mode for the spring. |
