Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yaxingson/gestejs


https://github.com/yaxingson/gestejs

finger gesture pan tap touch

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

# gestejs

![](https://badgen.net/npm/v/gestejs)

## Installation

package manager:

```sh
npm install gestejs --save

pnpm 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