Skip to content

bufferapp/jquery-dragme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Usage

  $('.my-modal-window').dragMe();

Prevent clicking on certain elements from dragging the element.

  $('.my-modal-window').dragMe({
    cancel: 'textarea, .button'
  });

Roadmap

  • Use requestAnimationFrame for smoother movement

Contributions

Bug fixes or improvements welcome!

About

A super lightweight jQuery plugin for dragging elements using CSS3 Transforms

Resources

License

Stars

Watchers

Forks

Packages

No packages published