Animation framework in WebGL