defineAnimation
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.
API details from source
Section titled “API details from source”
Returns an opaque immutable definition from a custom seekable sampler.
defineAnimation: <T>(options: Readonly<PibblAnimationOptions<T>>) => PibblAnimationDefinition<T>Related API: defineAnimation, PibblAnimationOptions, PibblAnimationDefinition.
Parameters
Section titled “Parameters”options— Duration and pure sampling callback for the animation. See PibblAnimationOptions .
Returns
Section titled “Returns”An immutable, seekable animation definition. See PibblAnimationDefinition.
See also
Section titled “See also”View source — packages/core/src/lib/animation/definition.ts:645
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”- Custom sampling and fixed steps: Combine a time-sampled sine wave with a fixed-step state machine. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 2dccb19. ALPHA — NOT FOR PRODUCTION USE.