This animation is loosely based on the virtual particle mechanism. In some scene repulsion of two electrons could be thought of as if they were exchanging virtual photons which carry momentum. You can read more about virtual particles on Wikipedia or Phisics FAQ.
Things used:
Source code can be viewed on GitHub.