0.2.0 • Published 9 years ago

simple-kinetic v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

SimpleKinetic build status

A basic utility to add kinetics effect.

Basic Example

var sk = new SimpleKinetic({
  onstart: function (
    currentX, currentY,
    diffX, diffY,
    endX, endY
  ) {
    console.log('start', arguments);
  },
  onmove: function (cx, cy, dx, dy, ex, ey) {
    console.log('move', arguments);
  },
  onend: function (cx, cy, dx, dy, ex, ey) {
    console.log('end', arguments);
  },
  oncancel: function (cx, cy, dx, dy, ex, ey) {
    console.log('cancel', arguments);
  }
});

// check the log
sk.init(0, 0, 10, 10, true, false);