Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roweldeguzman/swipe


https://github.com/roweldeguzman/swipe

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# swipe

# Usage
```javascript
new swipe('#touch-div',function(data){
//this will return object data.
if(data.direction === 'left'){
alert("You swipe left");
}
if(data.direction === 'right'){
alert("You swipe right");
}
if(data.direction === 'up'){
alert("You swipe up");
}
if(data.direction === 'down'){
alert("You swipe down");
}
});
```