Skip to content

defineAnimation

Read as Markdown

defineAnimation(options) creates an immutable seekable definition whose synchronous sampler receives the activation value, local time, and normalized progress. Use it when the built-in tween, keyframe, and spring definitions do not describe the required value curve.

Related types: PibblAnimationDefinition, PibblAnimationOptions, and PibblAnimationSampleInput.

Returns an opaque immutable definition from a custom seekable sampler.

defineAnimation: <T>(options: Readonly<PibblAnimationOptions<T>>) => PibblAnimationDefinition<T>

Related API: defineAnimation, PibblAnimationOptions, PibblAnimationDefinition.

An immutable, seekable animation definition. See PibblAnimationDefinition.

PibblAnimationOptions

PibblAnimationDefinition

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

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 2dccb19. ALPHA — NOT FOR PRODUCTION USE.