spring

fun spring(target: DynamicValue<Float>, to: Float, springConfig: SpringConfig = SpringConfig(), animationFinishListener: AnimationFinishListener? = null, onUpdate: (Float) -> Unit? = null): AnimatedAnimation

Returns an AnimatedAnimation ready for running spring animation based on the SpringConfig params

By default it uses medium stiffness and damping.