mojo-animator

mojo-animator =============

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
mojo-animator
0.0.210 years ago10 years agoMinified + gzip package size for mojo-animator in KB

Readme

Mojo Animator Build Status

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
  }
})