Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaxingson/gestejs
https://github.com/yaxingson/gestejs
finger gesture pan tap touch
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yaxingson/gestejs
- Owner: yaxingson
- License: other
- Created: 2024-05-12T02:53:06.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-27T02:50:15.000Z (about 1 month ago)
- Last Synced: 2024-12-27T02:52:28.082Z (about 1 month ago)
- Topics: finger, gesture, pan, tap, touch
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gestejs
![](https://badgen.net/npm/v/gestejs)
## Installation
package manager:
```sh
npm install gestejs --savepnpm add gestejs
```
## Usage
Vanilla javascript:
import:
```js
import { TapGesture, PanGesture, PinchGesture } from 'gestejs'const el = document.getElementById('tap')
```
cdn:
```html
const el = document.getElementById('tap')
```
Vue:
```js
import { useTap, usePan, usePinch } from 'gestejs/vue'```
React:
```js
import { usePress, useRotate, useSwipe } from 'gestejs/react'```
## Examples