springA

fun <T> springA(duration: Duration = 500.milliseconds, bounce: Float = 0.0f, visibilityThreshold: T? = null): SpringSpec<T>

Creates a SpringSpec parameterized by duration and bounce.

Parameters

duration

The perceptual duration or period of oscillation. Must be positive.

bounce

The bounciness factor in range [-1.0f, 1.0f]. 0.0f is critically damped (no overshoot), > 0.0f increases bounciness (underdamped), and < 0.0f increases resistance to oscillation (overdamped).

visibilityThreshold

Optional threshold below which the animation is considered settled.