This should be a good test for [construct.js](http://constructjs.org) - it'll need to use CSS 3D or WebGL depending what's available...