animations.nodeRipple
nodeRipple(nodeIds: string | string[], config?: NodeRippleConfig): stringStart 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.
nodeIds | string | string[] | One or more node IDs to animate. |
config | NodeRippleConfig | Optional 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