# Easing

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/TransitionScope.kt+class:androidx.constraintlayout.compose.Easing) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
@ExperimentalMotionApi
class Easing
```

<br />

*** ** * ** ***

Supported Easing curves.

You may define your own Cubic-bezier easing curve with `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#cubic(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)`.

## Summary

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#cubic(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Defines a Cubic-Bezier curve where the points P1 and P2 are at the given coordinate ratios. |

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#Accelerate()` Acceleration `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve, also known as: Ease in. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#Anticipate()` Anticipate is an `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve with a small negative overshoot near the start of the motion. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#Decelerate()` Deceleration `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve, also known as: Ease out. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#Linear()` Linear `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#Overshoot()` Overshoot is an `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve with a small positive overshoot near the end of the motion. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#Standard()` Standard `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve, also known as: Ease in, ease out. |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing#name()` |

## Public companion functions

### cubic

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun cubic(x1: Float, y1: Float, x2: Float, y2: Float): Easing
```

Defines a Cubic-Bezier curve where the points P1 and P2 are at the given coordinate ratios.

P1 and P2 are typically defined within (0f, 0f) and (1f, 1f), but may be assigned beyond these values for overshoot curves.

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | X-axis value for P1. Value is typically defined within 0f-1f. |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Y-axis value for P1. Value is typically defined within 0f-1f. |
| `x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | X-axis value for P2. Value is typically defined within 0f-1f. |
| `y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Y-axis value for P2. Value is typically defined within 0f-1f. |

## Public companion properties

### Accelerate

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Accelerate: Easing
```

Acceleration `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve, also known as: Ease in.

Defined as `cubic(0.4f, 0.05f, 0.8f, 0.7f)`.

### Anticipate

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Anticipate: Easing
```

Anticipate is an `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve with a small negative overshoot near the start of the motion.

Defined as `cubic(0.36f, 0f, 0.66f, -0.56f)`.

### Decelerate

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Decelerate: Easing
```

Deceleration `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve, also known as: Ease out.

Defined as `cubic(0.0f, 0.0f, 0.2f, 0.95f)`.

### Linear

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Linear: Easing
```

Linear `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve.

Defined as `cubic(1f, 1f, 0f, 0f)`.

### Overshoot

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Overshoot: Easing
```

Overshoot is an `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve with a small positive overshoot near the end of the motion.

Defined as `cubic(0.34f, 1.56f, 0.64f, 1f)`.

### Standard

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Standard: Easing
```

Standard `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Easing` curve, also known as: Ease in, ease out.

Defined as `cubic(0.4f, 0.0f, 0.2f, 1f)`.

## Public properties

### name

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
open val name: String
```