https://github.com/bufferapp/jquery-dragme
A super lightweight jQuery plugin for dragging elements using CSS3 Transforms
https://github.com/bufferapp/jquery-dragme
Last synced: 5 months ago
JSON representation
A super lightweight jQuery plugin for dragging elements using CSS3 Transforms
- Host: GitHub
- URL: https://github.com/bufferapp/jquery-dragme
- Owner: bufferapp
- License: mit
- Created: 2014-12-03T18:05:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-07T00:00:41.000Z (about 11 years ago)
- Last Synced: 2025-04-19T19:09:57.467Z (9 months ago)
- Language: JavaScript
- Homepage: http://bufferapp.github.io/jquery-dragme/
- Size: 136 KB
- Stars: 7
- Watchers: 38
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jQuery DragMe
=============
A super lightweight jQuery plugin for dragging elements using CSS3 Transforms.
The goal of this plugin is not to be a drop in replacement for jQuery UI's
draggable, but a minimal plugin to make certain elements draggable on a page,
i.e. modal windows.
[Live demo](http://bufferapp.github.io/jquery-dragme/)
## Usage
```javascript
$('.my-modal-window').dragMe();
```
Prevent clicking on certain elements from dragging the element.
```javascript
$('.my-modal-window').dragMe({
cancel: 'textarea, .button'
});
```
## Roadmap
- Use requestAnimationFrame for smoother movement
## Contributions
Bug fixes or improvements welcome!