Skip to content

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

PropertyPath

to

unknown

options?

TweenOptions

Returns

Animation

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)