androidx.compose.animation.core
SpringSpec
Class · from org.jetbrains.compose.animation:animation-core:1.12.2
No hand-written docs yet.
Creates a SpringSpec that uses the given spring constants (i.e. dampingRatio and stiffness. The optional visibilityThreshold defines when the animation should be considered to be visually close enough to round off to its target.
class SpringSpec<T>(
dampingRatio: Float = Spring.DampingRatioNoBouncy,
stiffness: Float = Spring.StiffnessMedium,
visibilityThreshold: T? = null,
) : FiniteAnimationSpec<T>
Is a
How to get one
Create it
SpringSpec(dampingRatio, stiffness, visibilityThreshold)constructor
Ready-made values and functions that return it
Properties
dampingRatio
val dampingRatio: Float
stiffness
val stiffness: Float
visibilityThreshold
val visibilityThreshold: T?
Library docs
Creates a SpringSpec that uses the given spring constants (i.e. dampingRatio and stiffness.
The optional visibilityThreshold defines when the animation should be considered to be visually
close enough to round off to its target.