A microkernel for modular javascript, a toolchain for modern front-end, a micro-framework for growable WebApp.

Momo (MoMotion)

  • A framework and a collection for separate and simple implementation of touch gestures

AMD and OzJS

Get the Code

Add to your project as new dependency

Or download directly from Github

Dependencies

Modules Overview

momo

  • A sample implementation for adapter

momo/base

  • A simple framework

momo/tap

  • ‘tap’, ‘doubletap’, ‘hold’, ‘tapstart’, ‘tapcancel’

momo/scroll

  • ‘scrolldown’, ‘scrollup’, ‘scrollstart’, ‘scrollend’

momo/swipe

  • ‘swipeup’, ‘swipedown’, ‘swiperight’, ‘swipeleft’

momo/drag (beta)

  • ‘drag’, ‘dragover’, ‘dragstart’, ‘dragend’

Examples

API and usage

momo


var momo = require('momo');

momo/base

Defaults:


var momoBase = require('momo/base');
var MomoBase = momoBase.Class;

momo/tap

Defaults:


var momoTap = require('momo/tap');
var tapGesture = momoTap(element, /* optional */ config, /* optional */ handler);

momo/scroll

Defaults:


var momoScroll = require('momo/scroll');
var scrollGesture = momoScroll(element, /* optional */ config, /* optional */ handler);

momo/swipe

Defaults:


var momoSwipe = require('momo/swipe');
var swipeGesture = momoSwipe(element, /* optional */ config, /* optional */ handler);

momo/drag

Under construction

More References

See OzJS Project Homepage

Release History

See OzJS Release History

License

Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.