# Easing

# Easing

Artifact:[androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/Easing.kt+class:androidx.compose.animation.core.Easing)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)
Common/All
  - Cmn  

  ```
  fun interface Easing
```  
Known direct subclasses  
[CubicBezierEasing](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/CubicBezierEasing),[PathEasing](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/PathEasing)  

|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| [CubicBezierEasing](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/CubicBezierEasing) | A cubic polynomial easing.                                                                                                   |
| [PathEasing](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/PathEasing)               | An easing function for an arbitrary[Path](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path). |

*** ** * ** ***

Easing is a way to adjust an animation's fraction. Easing allows transitioning elements to speed up and slow down, rather than moving at a constant rate.

Fraction is a value between 0 and 1.0 indicating our current point in the animation where 0 represents the start and 1.0 represents the end.

An[Easing](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/Easing)must map fraction=0.0 to 0.0 and fraction=1.0 to 1.0.

## Summary

|                              ### Public functions                               |
|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [transform](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/Easing#transform(kotlin.Float))`(fraction: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` | Cmn |

## Public functions

### transform

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)  

```
fun transform(fraction: Float): Float
```