---
title: "RemoteAnimationSpec"
description: "Specification for animations in Remote Compose."
type: "interface"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Android

```kotlin
public sealed interface RemoteAnimationSpec
```

Specification for animations in Remote Compose.

## Functions

### animate

> Source set: Android

```kotlin
public fun animate(
        targetValue: RemoteFloat,
        initialValue: Float = Float.NaN,
        wrap: Float = Float.NaN,
    ): RemoteFloat
```

Creates an animated [RemoteFloat](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteFloat/api) based on the provided `targetValue` and animation
parameters.

#### Parameters

| | |
| --- | --- |
| targetValue | The target value to animate towards. |
| initialValue | Optional initial value if animating from a start value, or `Float.NaN`. |
| wrap | Optional wrap modulo bound (e.g. 360f for angles), or `Float.NaN`. |

#### Return

An animated [RemoteFloat](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteFloat).
