tween
tween(options) returns an immutable
PibblAnimationDefinition.
Numbers interpolate linearly by default; other value types require an explicit
interpolator. from may be omitted so playback captures the output’s activation
value.
Use drive to bind the definition to a writable signal.
Related types: PibblTweenOptions
and PibblInterpolator.
API details from source
Section titled “API details from source”
Returns an opaque immutable tween definition.
tween: <T = number>(options: Readonly<PibblTweenOptions<T>>) => PibblAnimationDefinition<T>Related API: tween, PibblTweenOptions, PibblAnimationDefinition.
Parameters
Section titled “Parameters”options— Start and end values, duration, easing, and interpolation settings. See PibblTweenOptions .
Returns
Section titled “Returns”An immutable tween definition. See PibblAnimationDefinition.
See also
Section titled “See also”View source — packages/core/src/lib/animation/definition.ts:553
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”- Tween playback controls: Animate a signal and control the mounted playback with native buttons. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 2dccb19. ALPHA — NOT FOR PRODUCTION USE.