Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

xwiper

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Issues
File Explorer

Advanced tools

xwiper

[![NPM](https://nodei.co/npm/xwiper.png)](https://nodei.co/npm/xwiper/)

    2.2.1latest

Version published
Maintainers
1
Yearly downloads
6,132
increased by104.13%

Weekly downloads

Readme

Source

Xwiper

NPM

install size dependencies

Version License Downloads

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);
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc