folmeSpring

fun <T> folmeSpring(damping: Float, response: Float, visibilityThreshold: T? = null): SpringSpec<T>

Creates a SpringSpec from damping and response parameters.

Parameters

damping

The damping ratio. 1.0 = critically damped (no overshoot), < 1.0 = underdamped (oscillates), > 1.0 = overdamped.

response

The response time in seconds. Smaller values = faster animation.

visibilityThreshold

The magnitude below which the animation is considered settled and the invisible settle tail is cut; null falls back to the framework default displacement threshold.