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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i mojo-animator

Weekly Downloads

3

Version

0.0.2

License

ISC

Last publish

Collaborators

  • architectd
  • crcn