Skip to content

Intermact API Reference / @intermact/core / customAnimation

Function: customAnimation()

customAnimation(type, options?): Animation

Defined in: packages/core/src/animation/orchestration.ts:131

Build a plugin-supplied animation (design.md §18). It is compiled by the AnimationCompiler registered under type in the animations registry, so new animation kinds are added without editing the core compiler. params must be JSON-serializable (validated via assertSerializableParams) so the animation survives serialize/deserialize.

Parameters

type

string

options?

CustomAnimationOptions = {}

Returns

Animation

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