springB

fun <T> springB(response: Float = 0.5f, dampingFraction: Float = 0.825f, visibilityThreshold: T? = null): SpringSpec<T>

Creates a SpringSpec parameterized by response time and dampingFraction.

Parameters

response

The duration in seconds for approximately one full oscillation cycle (2π / ω). Must be positive and finite.

dampingFraction

The damping ratio (1.0f for critically damped, < 1.0f for bouncy, > 1.0f for overdamped). Must be non-negative and finite.

visibilityThreshold

Optional threshold below which the animation is considered settled.