Skip to content

Intermact API Reference / @intermact/core / buildFadeSpec

Function: buildFadeSpec()

buildFadeSpec(targetId, from, to, options?): Animation

Defined in: packages/core/src/animation/tween-spec.ts:50

Build a fade (fromto opacity) honoring shared options. Used by fadeIn (0→1 with baseline-hidden semantics) on both 2D and 3D objects.

Parameters

targetId

string

from

number

to

number

options?

TweenOptions

Returns

Animation

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