anim

fun anim(target: Double, timeMs: Double, ease: (t: Double) -> Double)

Starts a new animation towards the target value over the specified time using the given easing function.

Parameters

target

The target value to animate to.

timeMs

The duration of the animation in milliseconds.

ease

The easing function to use for the animation.

Throws

if the animation length is less than or equal to 0.