Mojo Animator
Mojo animator is a plugin that leverages the browsers native requestAnimationFrame
function to update the layout. It's used in paperclip, and mojo-views.
var Application = require("mojo-application");
var MyApplication = Application.extend({
registerPlugins: function () {
this.use(require("mojo-animator"));
}
});
var app = new MojoApplication();
// calls requestAnimationFrame
app.animate({
update: function () {
// do something
}
})