Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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+