Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/component/emulate-pinch
- Owner: component
- Created: 2013-09-03T04:04:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-03T04:08:23.000Z (over 11 years ago)
- Last Synced: 2024-05-08T17:12:38.929Z (8 months ago)
- Language: JavaScript
- Homepage: http://component.github.io/emulate-pinch/
- Size: 121 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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