pull

Press and hold anywhere: shapes gather toward your finger or pointer, then spring back when you let go.

Usage

Set interaction="pull" on the scene. Interactions are scene rules: they work on every object inside, whatever its type. Several run in the order written.

Options

AttributeTypeDefaultRangeDescription
pull-strengthnumber0.60 to 1Pull strength
pull-reachnumber4000 to 1000Farthest travel (px)

License

MIT. Use it anywhere, credit appreciated.