mojo-animator

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mojo-animator

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • architectd
  • crcn