Skip to content

Intermact API Reference / @intermact/core / specDuration

Function: specDuration()

specDuration(spec): number

Defined in: packages/core/src/animation/spec.ts:164

Compute the total duration of a spec tree.

Parameters

spec

AnimationSpec

Returns

number

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