Skip to content

tween

Read as Markdown

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.

Returns an opaque immutable tween definition.

tween: <T = number>(options: Readonly<PibblTweenOptions<T>>) => PibblAnimationDefinition<T>

Related API: tween, PibblTweenOptions, PibblAnimationDefinition.

  • options — Start and end values, duration, easing, and interpolation settings. See PibblTweenOptions .

An immutable tween definition. See PibblAnimationDefinition.

PibblTweenOptions

PibblAnimationDefinition

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

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.