flickable

0.0.5 • Public • Published

flickable

enable flick library for js

HOW TO USE

var flick = new Flickable(elem, direction) // direction -> 'vertical' or 'horizon'

flick.on('start', function(e) {
});
flick.on('move', function(e) {
  // e.x, e.y   // Current position
  // e.sx, e.sy // Start position
  // e.dx, e.dy // Diffrence of start position
  // e.prevX, e.prevY // Previous frame position
  // e.movementX, e.movementY  // diffrence of Previous frame position
});
flick.on('end', function(e) {});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.4
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i flickable

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

27.8 kB

Total Files

9

Last publish

Collaborators

  • phi
  • sho5