Simulation of the interleaving effect resulting of two different groups of particles colliding. The red group follows the mouse cursor, while the blue group is focused on the canvas center.
Uses d3.forceX, d3.forceY, and d3.forceCollide as forces, and d3ForcePod for the simulation scaffolding.
https://unpkg.com/d3-force-pod
https://cdnjs.cloudflare.com/ajax/libs/d3/5.5.0/d3.min.js