🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

SpringSpec

Creates a SpringSpec that uses the given spring constants (i.e.

Source set: Common
public class SpringSpec<T>(
    public val dampingRatio: Float = Spring.DampingRatioNoBouncy,
    public val stiffness: Float = Spring.StiffnessMedium,
    public val visibilityThreshold: T? = null,
) : FiniteAnimationSpec<T>

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.

Parameters

dampingRatio damping ratio of the spring. Spring.DampingRatioNoBouncy by default.
stiffness stiffness of the spring. Spring.StiffnessMedium by default.
visibilityThreshold specifies the visibility threshold

Functions

vectorize

Source set: Common
override fun <V : AnimationVector> vectorize(
        converter: TwoWayConverter<T, V>
    ): VectorizedSpringSpec<V>

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int