MotionScript

@motion-script/core


@motion-script/core / Effects

Variable: Effects

const Effects: EffectChain

Defined in: attributes/shape/effects/chain.ts:1248

Entry point for building effect chains fluently.

An empty EffectChain, so FX.blur(8) is new EffectChain().blur(8) — every builder's signature and documentation has exactly one definition, on the class, which is also what an editor shows when you hover FX.blur. (A parallel object of arrow functions would need its own copy of all 41 docs, and hovering it showed none of them.)

The chain is immutable — every builder returns a new chain — so sharing one empty instance as the entry point is safe.

Example

node.effects = FX.blur(8).grayscale(1);