springD

fun <T> springD(settlingDuration: Duration, dampingRatio: Float, visibilityThreshold: T? = null): SpringSpec<T>

Creates a SpringSpec parameterized by settlingDuration and dampingRatio.

Parameters

settlingDuration

The duration within which the spring oscillation settles. Must be positive.

dampingRatio

The damping ratio of the system. Must be positive and finite.

visibilityThreshold

Optional threshold below which the animation is considered settled.