Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/component/emulate-pinch

emulate component/pinch with your mouse
https://github.com/component/emulate-pinch

Last synced: 13 days ago
JSON representation

emulate component/pinch with your mouse

Awesome Lists containing this project

README

        

# emulate-pinch

emulate [component/pinch](http://github.com/component/pinch) with your mouse

## Installation

Install with [component(1)](http://component.io):

$ component install component/emulate-pinch

## Example

```js
var pinch = require('emulate-pinch');

pinch(img, function(e) {
dot.style.left = e.x + 'px';
dot.style.top = e.y + 'px';
dot.style['-webkit-transform'] = 'scale(' + e.scale + ')';
});
```

## API

### Pinch(el, fn)

Same API as [component/pinch](http://github.com/component/pinch).

## License

MIT