snappy

fun <T> snappy(duration: Duration = defaultDuration, extraBounce: Float = 0.0f, visibilityThreshold: T? = null): SpringSpec<T>

Creates a snappy spring preset with quick response and moderate bounce.

Parameters

duration

The perceptual duration of the spring motion. Defaults to 500ms.

extraBounce

Additional bounce to add to the preset base bounce of 0.15f.

visibilityThreshold

Optional threshold below which the animation is considered settled.