2.2.1 • Published 3 years ago

xwiper v2.2.1

Weekly downloads
153
License
ISC
Repository
github
Last release
3 years ago

Xwiper

NPM

install size dependencies

Swipe handler, support all browser

Install

npm install xwiper --save

How to use

import Xwiper from 'xwiper';

const xwiper = new Xwiper('.slider');

xwiper.onSwipeLeft(() => console.log('swipe left'));

xwiper.onSwipeRight(() => console.log('swipe right'));

xwiper.onSwipeUp(() => console.log('swipe up'));

xwiper.onSwipeDown(() => console.log('swipe down'));

xwiper.onTap(() => console.log('tap'));

// Remove listener
xwiper.destroy();

Advance

You can use element instance

const slider = document.querySelector('.slider');
const xwiper = new Xwiper(slider);
2.2.1

3 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago