Skip to content

spring

Read as Markdown

spring(options) returns a number-only analytic damped-oscillator definition. Mass, stiffness, damping, velocity, rest thresholds, and a maximum duration are explicit options. Sampling derives from logical time rather than accumulating display-frame deltas.

Related types: PibblAnimationDefinition and PibblSpringOptions.

Returns an opaque immutable analytic one-dimensional spring definition.

spring: (options?: Readonly<PibblSpringOptions>) => PibblAnimationDefinition<number>

Related API: spring, PibblSpringOptions, PibblAnimationDefinition.

An analytic numeric spring definition. See PibblAnimationDefinition.

PibblSpringOptions

PibblAnimationDefinition

View source — packages/core/src/lib/animation/definition.ts:626

Read the Animation and scheduling companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 380919b. ALPHA — NOT FOR PRODUCTION USE.