Easing

fun interface Easing

Reshapes an animation's linear progress into how it should actually feel. transform takes a linear fraction (0f at the start, 1f at the end) and returns the eased fraction actually used to compute the animated value — e.g. a constant-speed (linear) easing returns its input unchanged, while an "ease in" curve returns smaller values early on so the animation starts slow and speeds up.

Functions

Link copied to clipboard
abstract fun transform(fraction: Float): Float

The eased fraction for a linear fraction between 0 and 1; it should give 0 for 0 and 1 for 1.