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 must map fraction=0.0 to 0.0 and fraction=1.0 to 1.0.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# Easing\n======\n\nArtifact: [androidx.compose.animation:animation-core](/jetpack/androidx/releases/compose-animation) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/Easing.kt+class:androidx.compose.animation.core.Easing) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-animation#1.0.0)\nCommon/All\n - Cmn \n\n ```\n fun interface Easing\n``` \nKnown direct subclasses \n[CubicBezierEasing](/reference/kotlin/androidx/compose/animation/core/CubicBezierEasing), [PathEasing](/reference/kotlin/androidx/compose/animation/core/PathEasing) \n\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [CubicBezierEasing](/reference/kotlin/androidx/compose/animation/core/CubicBezierEasing) | A cubic polynomial easing. |\n| [PathEasing](/reference/kotlin/androidx/compose/animation/core/PathEasing) | An easing function for an arbitrary [Path](/reference/kotlin/androidx/compose/ui/graphics/Path). |\n\n*** ** * ** ***\n\nEasing 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.\n\nFraction 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.\n\nAn [Easing](/reference/kotlin/androidx/compose/animation/core/Easing) must map fraction=0.0 to 0.0 and fraction=1.0 to 1.0.\n\nSummary\n-------\n\n| ### Public functions |\n|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [transform](/reference/kotlin/androidx/compose/animation/core/Easing#transform(kotlin.Float))`(fraction: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` | Cmn |\n\nPublic functions\n----------------\n\n### transform\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-animation#1.0.0) \n\n```\nfun transform(fraction: Float): Float\n```"]]