About

I wrote this snippet due to the fact that I was looking for something like this, but I couldn’t find anything that suited my needs. I’m currently writing a plugin where I need this anyway so I thought I’d create my own.

My method uses CSS transform if possible, if not it uses just the standard top and left values like jQuery UI’s .draggable() method. Works in all major browsers and down to IE7 (Emulated with IE10).

Check out the demo and the download-link above.

The Code

More on this