spring
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.
API details from source
Section titled “API details from source”
Returns an opaque immutable analytic one-dimensional spring definition.
spring: (options?: Readonly<PibblSpringOptions>) => PibblAnimationDefinition<number>Related API: spring, PibblSpringOptions, PibblAnimationDefinition.
Parameters
Section titled “Parameters”options— Target, initial conditions, and spring parameters. See PibblSpringOptions.
Returns
Section titled “Returns”An analytic numeric spring definition. See PibblAnimationDefinition.
See also
Section titled “See also”View source — packages/core/src/lib/animation/definition.ts:626
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Animation and scheduling companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal examples
Section titled “Complete minimal examples”- Compose keyframes and springs: Run two independent tracks together, then mark, wait, and repeat. Plain source
Interactive examples
Section titled “Interactive examples”Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 2dccb19. ALPHA — NOT FOR PRODUCTION USE.