Gears.d3.js is a d3.js example for creating simulated gear animations with SVG.
See the demo. Based on this example by Mike Bostock.
MIT (with permission granted from Mike Bostock).
Note: the Fractal Gears implementation, as it is on my personal website, is not open source.