Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scazzy/jquery-draggable
Lightweight Draggable() jquery plugin
https://github.com/scazzy/jquery-draggable
Last synced: about 1 month ago
JSON representation
Lightweight Draggable() jquery plugin
- Host: GitHub
- URL: https://github.com/scazzy/jquery-draggable
- Owner: scazzy
- Created: 2013-02-21T09:55:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-02-22T11:16:41.000Z (over 11 years ago)
- Last Synced: 2023-03-24T07:43:09.606Z (over 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lightweight Draggable() jquery plugin
jQuery Draggable()
A jQuery plugin that adds cross-browser dragging support.In order to use the plugin, simply bind the "draggable" event to an element.
Here is an example:
// Basic dragging a div
$("div").draggable();// Restricting dragging to an axis
$("div").draggable({
axis: 'x'
});// Restricting dragging to it's parent container (boundary)
$("div").draggable({
containParent: true
});
Demo:
http://jsfiddle.net/yelton/2TQgB/
- Requires jQuery 1.7.2 or higher
- Supports most browsers - Chrome, Safari, Firefox, IE7+