Intermact API Reference / @intermact/core / buildTweenSpec
Function: buildTweenSpec()
buildTweenSpec(
targetId,property,to,options?):Animation
Defined in: packages/core/src/animation/tween-spec.ts:29
Build a property tween toward to, honoring shared duration/easing/delay options. Shared by the 2D and 3D registered-object tween families (moveTo/rotateTo/scaleTo/fadeTo) so the spec-construction boilerplate lives in one place (design.md §11, §13.6.1 DRY).
Parameters
targetId
string
property
to
unknown