animations

animations.nodeRipple

nodeRipple(nodeIds: string | string[], config?: NodeRippleConfig): string

Start a ripple animation on one or more nodes (expanding concentric rings).

The effect runs via GPU shader with zero per-frame CPU work. Default: loop: true (runs until stopped). Pass loop: false with a positive duration for a one-shot ring burst.

Not undoable. Not recorded in history.

nodeIdsstring | string[]One or more node IDs to animate.
configNodeRippleConfigOptional NodeRippleConfig (intensity, color, speed, loop, duration).

Returns: string

Example

const id = api.animations.nodeRipple(["s1", "s2"], { loop: false, duration: 1200 });
// runs for 1200 ms then self-terminates