@odopod/odo-on-swipe

1.1.2 • Public • Published

Odo On Swipe

Provide event hook for swipes on an element.

Install

npm install @odopod/odo-on-swipe --save

Quick Start

import OdoOnSwipe from '@odopod/odo-on-swipe';

const element = document.getElementById('foo');
const instance = new OdoOnSwipe(element, swiped(event) {
  element.textContent = 'Swiped ' + event.direction;
});

Documentation

Visit the Odo component directory for demos, code examples, and documentation.

Package Sidebar

Install

npm i @odopod/odo-on-swipe

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

12.5 kB

Total Files

17

Last publish

Collaborators

  • nathanbuchar
  • odopod-admin
  • vestride