---
title: "remoteTween"
description: "Creates a [RemoteAnimationSpec] with the given duration in milliseconds and easing curve."
type: "function"
lastmod: "2026-09-24"
---
## API Reference

### remoteTween

> Source set: Android

```kotlin
public fun remoteTween(
    durationMillis: Int = 300,
    easing: RemoteEasing = RemoteEasing.Standard,
): RemoteTweenSpec
```

Creates a [RemoteAnimationSpec](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteAnimationSpec/api) with the given duration in milliseconds and easing curve.

#### Parameters

| | |
| --- | --- |
| durationMillis | Duration of the animation in milliseconds. |
| easing | Easing curve to apply. |
